Behavior & Display preferences
Set preferences for the behavior and display aspects of the Code Editor.
Language
Select the programming language to which the preferences will apply; the default is All Languages. If you select a specific language, the changes will apply only to that language.
Use custom settings - this checkbox appears only if Language is not set to All Languages. This box must be checked to make any changes in the settings for the selected language.
This page consists of three tabs. To enable the Language-Specific tab, the Language combobox must be set to a specific language.
Behavior Preferences
Tabs:
- Tab size - default size is four characters.
- Insert spaces for tab- if checked, tab size whitespaces are inserted into the document instead of the tab character when the Tab key is pressed.
Indentation:
- Smart tab - if checked, when the Tab key is pressed the cursor is moved to align with the first character following a whitespace on the previous non-blank line.
- Smart backspace - if checked, backspace intelligently through whitespace.
- Smart indent - if checked, 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 - remove trailing whitespace from the file
Automatically Close: If checked, 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 checked, the Home key moves the cursor to the left of the first non-blank character on the line.
- Smart end - if checked, 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 checked, 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
Editor:
- Show line numbers - Enables or disables line number display
- Show Right Margin - Displays a thin line on the right side to indicate the right margin
- Right margin - Row number where the right margin line is located. Sets the right margin of the editor. The default is 80 characters
- Show indentation guide - vertical lines that indicate relative indentation of text
Highlighting:
- Current line - When this option is active, the Code Editor highlights the line that currently contains the cursor.
- Brace Match - When this option is active, the 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; curly braces denote comments, and comments are not highlighted.
- All occurrences on double-click - When this option is active, the Code Editor highlights all occurrences of the selected word selected after the user double-clicks on it. The search is case-insensitive and matches whole words only.
Wrapping:
- Line wrapping - enabled if checked.
Language Specific Preferences
When Language is not set to All languages, the Language Specific tab is enabled. Click the tab to display any preferences related to that language.