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.
In order to enable the Language-Specific tab, Language 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.
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 Mac
OS X.
- 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 - highlight line at caret position
- Brace Match - enable brace match highlighting (highlights both braces in a set when the
cursor is immediately to the right of one of the braces).
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.