Skip to main content

Editor Options

Editor Options

The editor options allow you to control the behavior of the Studio text editor. These options include:

Syntax Check and Assist

Enable Syntax Checking: If enabled, syntax errors are highlighted. You can specify when syntax checking should be performed - either on each change (each character that you type or erase) (Syntax Check on Change) or when the cursor leaves the current line (Syntax Check on Leave Line). You can specify whether you also want the errors to be underlined with a wavy red line (Underline Errors).

Enable Bracket Matching: If enabled, pairs of matching brackets enclosing the current cursor point are bolded. Depending on the language you are in, brackets include [ ] square brackets, ( ) parentheses, and < > angle brackets. Note that for Enable Bracket Matching to work, Enable Syntax Checking must be checked. Bracket Matching Line Limit Limits the number of lines to search above and below the caret position to locate a matching bracket (as an unlimited search in a long file would slow the editor down significantly).

Studio Assist: Enables code completion. As you are entering ObjectScript code, a drop-down menu is displayed showing available options for what you can enter next. If you type a package name, available classes are listed. If you type a class, available methods are listed. If you type a method, available arguments are listed. Available options may be listed in other locations as well, such as with #dim declarations and trigger code.

To display undeclared local variables when entering a #DIM statement, you must be in a method, and you must have selected Studio Assist and Option Explicit. To be listed, a variable must not begin with %, must not be a parameter or in the public list, and must not have been declared already.

If you type $$$, available macros are listed as follows: User-defined macros are listed if they are defined in the current file and if they are defined in an include file and, within the include file, they are preceded by a line beginning with three slashes, ///. System-defined macros are listed if the current file is a class file.

Following a partial member name, Studio displays a list of matching members as follows: If the partial entry begins with double-quotes (or a single quote), the popup contains only members whose names must be quoted in the program; that is, they contain spaces or other non-alphanumeric characters. If the partial entry does NOT begin with double-quotes, the popup contains only members whose names do not need to be quoted. If Studio Assist is triggered directly after a period, the popup contains all member names.

Parsing delay. Check if parsing slow. Uncheck if line flashing. If Syntax Check on Change and Parsing delay are both enabled and you are entering text faster than the parser can reparse, the text flashes between black and the parsed color. If the text is flashing, disable Parsing Delay by clearing this option or pressing Ctrl+Alt+O. Response may slow slightly since every keystroke causes a reparse, but the flashing stops. This switch needs to be set at the start of each Studio session.

Studio Assist provides code completion and assistive popups for RESTSpec XData blocks.

Colors

The Studio syntax checker uses a different coloring scheme for each language it supports. This option lets you specify the colors used to highlight syntactic elements when Studio syntax coloring is enabled.

To change the color used by the Studio Editor for a specific syntax element, do the following in the Options dialog, Appearance tab:

  1. Select a language (such as ObjectScript) from the available options.

  2. Select a syntax element (such as comments).

  3. Select the desired foreground (and background color) color.

  4. Select Apply to use the new color scheme.

Reset reverts the selected syntax element to its default color.

Reset All reverts all syntax colors to their default values.

Note:

You can also change the color for a particular syntax element by right-clicking it in the editor window and selecting Set Syntax Color.

Keyword Expansion Case

This feature only applies to ObjectScript routines.

Specifies the case (Use Current Case, Uppercase, Lowercase, or Mixed Case) used to expand ObjectScript commands when you select Edit > Advanced > Expand Commands. Set this option, highlight the code you want to expand, then select Edit > Advanced > Expand Commands. This also applies if you are compressing commands.

Indentation

Defines characteristics of automatic indentation.

  • Basic: If enabled, if a line begins with a tab, a space, or any combination of spaces and tabs, when you press Enter, the next line is started automatically with the same combination of spaces and tabs.

  • User-defined ('/t' for tab)

    If enabled, you can specify any characters that you would like to be automatically entered at the start of each subsequent line. For example, if you enter the set of characters \t.#/; (tab, dot, pound, slash, semi-colon) and if a line begins with any of these characters or any combination of these characters, when you press Enter, the next line is started automatically with the same combination of characters.

  • None: No automatic indentation is provided.

Comment

Displays a table of comment delimiters for Studio document types. Select in a cell to enter a delimiter. Highlight a block of text in a Studio document and press Ctrl + Alt + / to delimit the block with Multi-Start and Multi-End characters.

View

Controls the display of some items.

  • Show Special Characters: If enabled, the editor displays newline and tab characters using special symbols.

  • Show Line Numbers: If enabled, the editor displays line numbers.

  • Convert tabs to spaces: If enabled, the editor converts tabs to spaces.

  • Cloudy background color for generated files: If enabled, the editor displays generated files with a greyed background color to differentiate them from user-created files.

  • Tab Size: Specifies the size of a tab by number of spaces.

FeedbackOpens in a new tab