From RAD Studio
Jump to: navigation, search

Go Up to User Interface

Tools > Options > User Interface > Editor

The Editor offers options to customize the behavior of the Code Editor.

Item Description

Insert mode

Inserts text at the cursor without overwriting existing text. If Insert Mode is disabled, text at the cursor is overwritten. (Use the Insert key to toggle Insert Mode in the Code Editor without changing this default setting.)

Group undo

Undoes your last editing command as well as any subsequent editing commands of the same type, if you press Alt+Backspace or choose Edit > Undo.

Cursor beyond EOF

Positions the cursor beyond the end-of-file character.

Force cut and copy enabled

Enables Edit > Cut and Edit > Copy, even when there is no text selected.

Auto-complete text to find

Enables auto-complete in the find dialog.

Create backup files

Creates a backup file every time you update and save a file in the IDE. Backup files are stored in the current directory in a hidden directory named __history and can be managed from the History tab. Use File backup limit to specify the number of backup files maintained in the __history directory.

Highlight brace pairs

Highlights both braces of a brace pair (that is, { }) when the cursor is to the left of either brace. When this option is disabled, the code editor does not highlight opening and closing parentheses, square brackets, curly braces, or comment delimiters. The default is On.

Undo after save

Allows you to retrieve changes after a save. The default is On.

BRIEF regular expressions

Uses BRIEF regular expressions. Regular Expressions assist in pattern-matching operations. The default is Off.

Persistent blocks

Keeps marked blocks selected, even when the cursor is moved using the arrow keys, until a new block is selected. The default is Off.

Overwrite blocks

Replaces a marked block of text with whatever is typed next. If Persistent blocks is also selected, text that you enter is appended following the currently selected block. The default is On.

Find text at cursor

Places the text at the cursor into the Text To Find list box in the Find Text dialog box when you choose Search > Find. When this option is disabled you must type in the search text, unless the Text To Find list box is blank, in which case the editor still inserts the text at the cursor. The default is On.

Code folding

Enables/disables code folding. The default is enabled (checked). The keyboard shortcut is CTRL+SHIFT K+O. See Code Editor Context Menu (the Fold/Unfold commands). See also Code Editor and Using Code Folding.

Ask to reload modified files

Enables the following prompt, which appears when the file that is open in the Code Editor has been changed outside the IDE.

Module filename's time/date changed. Reload?

If this option is unchecked, and the file in the Code Editor is not modified, the file is reloaded without the prompt being displayed. The default is On.

Common reasons for a file being modified outside the IDE:

  • Using an external code editor
  • Updating or reverting from a version control system

This option does NOT affect a similar prompt that appears if a file is modified externally (and has unsaved changes in the IDE):

Module filename's time/date on disk has changed. In-memory changes to this module have been detected as well. Reloading the module from disk will overwrite these changes. Reload?

Undo limit

Indicates the number of keystrokes that can be undone. The default value is 32,767. The undo buffer is cleared each time the product generates code.

File backup limit

If Create backup files is checked, it controls how many backup files are maintained for files updated and saved in the IDE. The default value is 10, but it can be set to 1 through 90.
Reducing the File backup limit does not cause existing backup files to be deleted from the __history directory.

Default file encoding

This option allows setting the default file encoding. It can be set to: Text Form, Binary Form, Binary, Big Endian UCS-2, Little Endian UCS-2, Big Endian UCS-4, Litte Endian UCS-4, UTF8, and ANSI. The default file encoding is set to ANSI.

Double clicking

Two double clicking options can be selected:

  • Selects word, when only the selected word is highlighted if it is double clicked.
  • Selects entire line, when the entire line is highlighted if you double-click any character in the line.

Highlight words

Allows you to choose one of two word highlighting options:

  • When Selected, which highlights occurrences of words selected using double click.
  • By cursor, which highlights occurrences of words under the cursor.

Don't highlight keywords

Enables/disables word highlighting. The default is checked. Applies for both Highlight words options, When Selected and By cursor.

Child Pages

See Also