Options | Editor

Top  Previous  Next

Specify options for the editor

 

Font

The font to be used. Double-click to get a list of fonts from which you can select the new editor font. This font will also be used in other windows when showing a list of items.

 

Font Size

Size of the font to be used

 

Auto Indentation

When enabled, pressing the Enter key will position the cursor on the next line under the first non-blank character facilitating indented text entry.

 

Syntax colors

When enabled, color the text based on the syntax of the language. The syntax used depends on the file extension of the file being edited. GAMS files always have the 'gms' file extension. The colors used for the syntactical elements can be specified in the colors options.

 

Highlight URLs

When enabled, a URL, like www.gams.com can be shown in a different color. Clicking on a URL will launch the default web browser with the selected URL as the active page.

 

Show special characters

When enabled, the Tab and End of Line characters will be visible.

 

Maximum lines for Syntax colors

Syntax colors will be disabled for files with a number of lines exceeding the specified number. Determining syntax colors for large files can slow down the editing of text. Reduce this number to increase the responsiveness of the editor.

 

GAMS file extensions

In addition to the 'gms' file extension, additional file extensions can be specified to enable GAMS syntax colors. Multiple file extension should be separated by a comma (,).

 

A file with a 'GAMS file extension' can be run or compiled as a GAMS model. The run button and the additional parameters will be enabled. See also File Extensions.

 

File extensions for automatic reload

Indicate which file extensions will be used to reload files that have been modified by another program or process. Multiple file extension need to be separated by a semicolon. In case the file was modified in the editor you will still be prompted if the file should be reloaded or not.

Files to save before Run or Compile

Select which modified files you want to save before making a run or a compile.

 

Right margin position

Indicates the position of the thin vertical line drawn in the editor to indicate the right margin. A value less or equal to two will hide the line. This line only serves as a visual indicator of the right margin and has no impact on the text entered.

 

Keyboard mapping

In addition to the GAMS standard mapping, the IDE also supports a small subset of the Epsilon editor.

 

Tab keys

A number of things to consider when dealing with Tabs:

When reading a file, Tabs can be left untouched or can be converted to spaces using the value of Tab size.

When pressing the Tab key, the editor can insert a Tab character or insert a number of spaces. The number of spaces inserted depends on the options selected under Automatic spaces.

If a file contains Tab characters, or we insert Tab characters in the text, the editor will simulate the inserted spaces on the screen without changing the text. The tab positions used for display purposes are taken from the Tab stops.

Tab key use

 

This option determines what happens when a file is read containing Tabs or when the Tab key is pressed:

Use Tabs:

Leave Tabs as is when reading a file.

Insert a Tab character when pressing the Tab key.

Simulate spaces on the screen using the tab positions entered under Tab stops.

Warning: It is possible to select Tab stops that are different from the specified Tab size; this can lead to unexpected results when the tabs will be interpreted with a fixed tab size.

Hint: If it is more convenient to view the Tabs in a file without any additional space characters, select a single tab stop of 1 or 2.

Use Spaces:

Convert Tabs to spaces using the value of Tab size when reading a file.

Insert spaces when pressing the Tab key. The number of spaces inserted is determined by the option selected under Automatic spaces.

 

Automatic spaces:

Option for the number of spaces that will be inserted when pressing the tab key.

Use tab stops

The tab stops field determines how may spaces will be inserted to reach the next tab stop position

 

Smart tabs:

Spaces are inserted until the cursor is under a non-blank character of the previous line that is not empty.

 

Show Hints

When enabled, the little yellow rectangles (balloon help) will be shown with Hint text for the selected item. The bottom of the main window will always show the hint text regardless of this setting.