Editor page (Editor Options dialog box)

Use the Editor page of the Editor Options dialog box to customize editing behavior.

To open the Editor page, choose Tools|Editor Options, then click the Editor tab. You can also right-click in the editor and select Editor Options. Click the expand icon to expand the list of options.

Keymap

Sets the keymapping definitions for the editor and the IDE menus. For a complete listing of editor keymapping definitions, see Keymaps. Keymap definitions are also listed in the Keymap Editor dialog box

Customize

Displays the Keymap Editor dialog box where you can customize your keymapping for the selected keymap.

Block Indent

Specifies the number of characters between indent levels in text. This is the effective 'tab stop' level for everything except actual tab characters. The value is used for indenting marked blocks and for indenting when the tab key is pressed. The default is 2; the upper limit is 20. If you enter a value greater than 20, you will receive an error.

Tab Size

Sets the number of characters between tab stops for actual tab characters. This option is only used for displaying text already containing tab characters. Pressing the tab key may indent by a different amount. See Block Indent above. The default setting is 8.

Backup Level

Use the Backup slider to specify the number of file backups. The maximum number of backups is 30.

Smart Key Options

Options that determine how smart keys work in the editor. Click expand icon to expand the list.

Smart Home

When this option is enabled, Home moves the cursor to the left of the first non-blank character on a line. If the cursor is already in this position, it is moved to the beginning of the line instead.

Smart End

When this option is enabled, End moves the cursor to the right of the last non-blank character on a line. If the cursor is already in this position, it is moved to the end of the line instead.

Smart Tab

Indents to align the cursor with the left edge of words in the first non-blank line above the current line. Searches for the first next non-whitespace character in the above line that is preceeded by whitespace. If no character matching this description is found, tab reverts to indenting to the next block indent position.

Indent Options

Options that determine how indents work in the editor.

Smart Indent

Positions the cursor under the first non-blank character of the preceding non-blank line when you press Enter. Smart indent must be on for Indent After Brace to work.

Indent After Brace

Automatically indents the next line after you enter a brace. Smart indent must be on for Indent After Brace to work.

Use Tab Character

When indenting a line, the Use Tab Character option automatically replaces space characters with tab characters as appropriate. For example, if 'block indent' is set to 2 and 'tab size' is set to 8, tabbing four times at the start of a line results in a single tab character. Tab characters are never inserted after non-whitespace characters, even if this option is enabled.

Align Closing Curly Brace

When you enter a closing curly brace, the editor aligns it with the opening curly brace.

Display Options

Options that affect the screen display in the editor.

Blink Caret

Controls whether the cursor is blinking or not.

Save Options

Options that take effect when saving a file.

Strip Trailing Whitespace

Removes any trailing whitespaces in the file when you save.

Change Leading Tabs To Spaces

Removes leading tab characters ("\t") on all lines and replaces them with spaces when you save.

Change Leading Spaces To Tabs

Replaces leading spaces with tabs when you save.

Search Options

Show Dialog When Search Fails

Shows a dialog when the search fails. When this option is not selected, the dialog is suppressed and the message is displayed on the status bar.

Search Word At Cursor

Automatically places the word closest to the cursor position in the Text To Find field in the Find/Replace Text dialog box.