Skip to main content
Version: 🚧 Alpha 🚧

GAML Editor tools

The GAML editor toolbar and its Editor options menu provide controls for searching and navigating the source, changing the editor display, and validating a model. The context menu provides editing commands such as formatting and rename.

Search and navigation​

A GAML model open in the editor, with the toolbar search field outlined in red.

The red outline marks the search field in the GAML editor toolbar.

The toolbar's previous and next edit-location buttons move through the editor's navigation history. The search field finds matching text in the current editor; its arrows move to the previous or next match.

Choose Show outline from Editor options to open the Outline view. It lists model sections and lets you navigate to a section. The Outline view is also available from Views > Show View....

Editor options​

The Editor options button is at the right of the GAML editor toolbar. Its Presentation submenu includes zoom controls, editor layout commands, line numbers, code folding, word wrap, the markers overview, inline markers and the experiment display option. The main menu also provides commands to show or hide the Outline, Navigation, versions and dependencies views when available.

The GAML editor's Presentation submenu is open beside the Editor options menu and toolbar.

The Navigation view is the editor minimap. Open it with Show minimap in Editor options, or from Views > Show View.... The image shows the Outline and Navigation views open together: the Outline lists model elements, while the minimap shows the source layout and the portion currently in view.

The Outline lists the active model's elements above the Navigation minimap, beside the GAML editor.

Editing commands​

Right-click in the editor to access commands including Toggle Comments, Format and Rename Element. Toggle Comments comments or uncomments the selected lines. Format applies the GAML formatter. Rename Element updates references to a selected model element when the language service can identify them.

The GAML editor context menu shows Toggle Comments, Format and Rename Element.

The Edition submenu contains settings for automatically closing delimiters and formatting on save. Automatic validation is a separate command in Editor options. When it is disabled, Validate now runs validation for the open model.

The GAML editor's Edition submenu shows controls for closing quotes, brackets, curly brackets and parentheses.