Show: Object Pascal C++
Display Preferences

Editor Options

From Appmethod Topics
Jump to: navigation, search

Go Up to Tools Options Dialog Box

Tools > Options > Editor Options

Use this page 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.

Double click line

Highlights the line when you double-click any character in the line. If this option is not selected, only the selected word is highlighted.

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.

Undo after save

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

Show all search matches

Highlights all search matches in the current scope when you execute Search > Find. The default is On.

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.

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.

Preserve line ends

Preserves end-of-line position. 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.

Auto search wrap around

Enables every Search > Find command to restart from the beginning without prompting you for permission. The default is Off (you are prompted). This option is set when you click Wrap around without asking on the Search Match Not Found dialog box.

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?

Editor SpeedSetting

Provides a quick way to set the editor options by using preconfigured settings in the drop-down list:

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.


See Also

Personal tools
In other languages