Behavior & Display preferences

Set preferences for the behavior and display aspects of the Code Editor.

Language

You can set language preferences for all languages, then overwrite preferences for specific languages.

To set preferences for all languages, select All Languages.

To set preferences for a specific language, select the language using the Language combobox, then select the Use custom settings checkbox. This box must be checked to make any changes in the settings for the selected language. The language is identified as having a custom setting by the additon of a pencil icon next to the language name.

When you select a language, changes to preferences will only apply to that language.

Behavior preferences tab

Tabs:

  • Tab size - Size of tab in characters.
  • Insert spaces for tab - If selected, tab size whitespaces are inserted into the document instead of the tab character when the Tab key is pressed.

Indentation:

  • Smart tab - If selected, Code Editor will move the cursor to align with the first character following a whitespace on the previous non-blank line, when the Tab key is pressed.
  • Smart backspace - If selected, Code Editor will backspace intelligently through whitespace.
  • Smart indent - If selected, Code Editor will indent code based on the indentation of the previous line. New lines are indented to the first non-blank character of the line above.
  • Strip trailing white spaces - If selected, Code Editor will remove all trailing whitespace from the file.

Automatically Close:

If selected, the closing symbol will be added to each of these:

  • String " "
  • Single quotes ' '
  • Parenthesis ( )
  • Curly braces { }
  • Square brackets [ ]
  • Angle brackets < >

Smart Key Options:

  • Smart home - If selected, the Home key moves the cursor to the left of the first non-blank character on the line.
  • Smart end - If selected, the End key moves the cursor to the right of the last non-blank character on the line.

Copy Options:

  • Copy whole line when no selection - If selected, the entire line is copied when you choose Copy and nothing is selected.

New Document Format:

Sets the default line ending for new text documents:

  • Windows® - Use the CRLF end-of-line format, as used by Windows® and most other early non-UNIX® and non-IBM operating systems.
  • UNIX/Mac® - Use the LR end-of-line format, as used by UNIX-like systems including macOS™.
  • Mac 9 - Use the CR end-of-line format, as used by Mac OS up to version 9.

Display preferences tab

Editor:

  • Show line numbers - If selected, Code Editor displays line numbers.
  • Show Right Margin - If selected, Code Editor displays a thin line on the right side to indicate the right margin. The spinner sets the column number where the right margin line will be located, in characters.
  • Show indentation guide - If selected, Code Editor displays vertical lines that indicate relative indentation of text.

Highlighting:

  • Current line - If selected, Code Editor highlights the line that contains the cursor.
  • Brace Match - If selected, Code Editor highlights both of the enclosing glyphs in a set when the cursor is immediately to the right of one of the glyphs. The glyphs involved (parentheses, curly braces, square brackets, or angle brackets) are language-dependent. With Genero BDL, parentheses and square brackets are highlighted, while curly braces denote comments and are not highlighted.
  • All occurrences on double-click - If selected, Code Editor highlights all occurrences of a selected word after the user double-clicks on it. The search is case-insensitive and matches whole words only.

Wrapping:

  • Line wrapping - If selected, line wrapping is enabled.

Language Specific preferences tab

The Language Specific tab is only enabled when a language has specific options to set. It is never enabled for All Languages. If you select a language and the tab is not enabled, then there are no language-specific preferences to set.

For example, if you set the language to Genero BDL, you have these options:
  • Automatically convert all keywords to upper case
  • Select comment operator - Use -- or # to delineate comments from code.
  • Synchronize with current line - If selected, the Structure view synchronizes with cursor movements in the Code Editor, to show the current function.
  • Extra identifiers - Specify custom keywords into one or more sets of extra identifiers, then set the style for each extra identifier set on the Color & Font preferences page.