Editor tab

(Config > Options... > Editor tab)

Reuse editor windows

Format:openfilesinnewbuffers

Default: off (files are opened in new editor windows)

Specifies whether a buffer in an existing editor window should be created for files opened from the builder and debugger. If off, a new editor window will be created for each file edited.

Create backup files when saving

Format: editorbackups

Default: Off

Automatically create a backup of the on-disk version of a file before saving over it. The backup file has the same name as the original file, with a "~" appended to it.

Drag and drop text editing

Format: draganddrop

Default: On

Check to enable drag and drop text editing. After you select a block of text, you can click on it and drag the mouse to move the text to another location.

Tab size

Format: tabsize

Default: 8

Number of spaces in a tab when displayed in the Editor.

Indent size

Format: editindent

Default: 4

Number of spaces in an indent for languages other than Ada. Used with indentation editor commands. Ada has its own indent setting.

Ctrl+cursor jump size

Format: editsomesize

Default: 5

Multiplier used by UpSome, DownSome, LeftSome, and RightSome editor commands. These are bound to the Ctrl+cursor keys by default. So pressing Ctrl+Left will move the cursor left by 5 characters by default.

Configure Editor Buttons...

Creates a dialog which allows editing of the editor buttons using the same format that the editbutton command takes. In the dialog that comes up, there is a list of buttons on the left and a list of available icons on the right.

More Editor Options...

Creates the More Editor Options... dialog which contains additional configuration options for the editor.

Auto Indent Options

Implicit auto indent

Format: aiimplicitindent

Default: On

Check to turn on the Editor command AutoIndentImplicit. This will cause the editor to auto indent your file as you type, as opposed to manually invoking the auto indent. Disabled, AutoIndentImplicit has no effect.

Implicit auto indent in comments

Format: aiimplicitindentincomments

Default: On

If aiimplicitindent is on, then check to enable AutoIndentImplicit within comments. Disabled, AutoIndentImplicit has no effect in comments.

Switch bodies indented two instead of one

Format: aiswitchintwo

Default: On

C - Switch bodies are indented two levels so that case labels are indented one level in from the switch. Disabled, the case labels are even with the switch.

Ada - Select bodies are indented two levels so that when labels are indented one level in from the select. Disabled, the when labels are even with the select.

Indent comments when indenting multiple lines

Format: aitouchcomments

Default: Off

Auto indent comments even when auto indenting multiple lines. Disabled, comments aren't modified by AutoIndent unless AutoIndent is invoked on just one line.

Comments stick flush left

Format: aicommentsstayflushleft

Default: On

Check to keep comments from indenting away from the left margin. If you wish to indent a comment that is stuck to the left margin while this is on, insert a space just before the comment to get it unstuck, then invoke AutoIndent.

C chars aligned like '*' in comments

Format: aicharslikestarincomment

Default: "-"

To have characters other than '*' line up in comments as if they were '*', make them part of this string. For example, this allows correct auto indention of comments which have a column of -'s down the left side, lined up under the * in the /*.

C paren indent mode, Ada paren mode

Format: aiparenindentmode

Default: IndentInTwo

Format: aiadaparenindentmode

Default: EvenWithParen

Controls how the editor indents a line if it starts within an open paren/close paren pair in the corresponding language.

EvenWithParen - If there is a non-whitespace character between the open paren and the end of its line, then the lines enclosed in () start at the same column as that character. Otherwise, the lines enclosed in () start in the column just after the open paren.

IndentInTwo - The lines enclosed in () start two indent levels in from the open paren's line.


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.