File Editing Panes

Use file editing panes to create, view, and edit text files used by AMPL, including model file, data files, and script (run) files.

When a file is opened — usually, by double-clicking its name in the File Navigation Pane — its contents appear in an editor window in the main file editing pane (initially to the right). You can open any number of files. By default all opened files share the main file editing pane, with each editor window identified by a tab at the top. Click on a file’s tab to see and edit its contents; click in the “x” in its tab to close the window.

You may drag a file’s tab, as explained in the general introduction to Panes , to create a separate editing pane for the file. Other files may be added to that pane by dragging them to the pane’s tab area.

While editing the file, autocomplete/intellisense can be activated by pressing Ctrl + Space. This functionality (still in beta) will list a set of suggestions to complete the current word, based on the keywords and defined entities to that point of the file.

Keywords are shown in bold red in editor panes, character strings are shown in blue, comments are shown in green and variables, once defined, are shown in light pink.