A.3.3. Edit

Settings in this group control general editor behavior when working with source files in the Code window.

These settings can be overridden dynamically using the menus and toggles in the source code view.

The Edit group contains three third-level groups and a series of settings:

Backup

These settings control the backup behavior when working with source files in the Code window. Table A.7 describes these settings.

Table A.7. Backup settings

NameProperties
DisableBy default, a backup file is created when a file is edited. This provides a useful safety feature. Use this to disable this feature if required.
Backup_dir

By default, backup files are saved in the same directory as the original file. Use this to specify a path name to a new location, for example to keep all backup files in one special directory.

Note

If a backup directory is specified then the files are saved there using the original file extension.

Backup_ext

By default, backup files are saved with the .bak extension appended to the original filename.

Note

The file extension is only used if a backup directory is not specified.


Tab_conv

Settings in this group control the display behavior when working with source files in the Code window. These settings are used to handle tabs and spaces.

Tabs are permitted in files and are left untouched, by default. Use these settings to convert tabs to spaces when writing to the file, that is saving, and to convert spaces to tabs when reading the file.

Spaces are not converted to tabs inside " and " quoting blocks on a line. Table A.8 describes these settings.

Table A.8. Tab_conv settings

NameProperties
Tabs_to_spacesConverts tabs to spaces when the file is saved.
Spaces_to_tabsConverts spaces to tabs when the file is read.
To_spaces_extUse this to specify file extensions where tab conversions take place. Specify a list separated by semi-colons (;)
To_tabs_extUse this to specify file extensions where space conversions take place. Specify a list separated by semi-colons (;).

Src_ctrl

This group is deprecated.

Edit

Settings in this group configure editor behavior when working with source files in the Code window.

Table A.9 describes these settings.

Table A.9. Edit settings

NameProperties
Drag_drop_disUse this to disable drag-and-drop editing when working in a source code view.
ViDeprecated.
IndentUse this to set indenting so that a specified number of spaces are inserted as you open a new line. By default, auto-indent inserts the same number of spaces as on the previous line. If the previous line is a left curly bracket ({) the shift is increased. If the previous line is a right curly bracket (}), shift spaces are subtracted.
UndoUse this to specify the levels of undo and redo. By default, this is set to 64.
TabUse this to specify the size of TAB settings when working in the File Editor. By default, this is set to 8. Use a value between 1 and 16.
ShiftUse this to specify the size of shift spaces as used in the Indent rule and accessed through the Code window Edit menu options. By default, this is set to 2. Use a value between 2 and 32.
Line_numberBy default, line numbering is enabled in the debugger and the File Editor. Use this to change the editor default to hide line numbers at start-up.
No_tooltipBy default, tooltip evaluation of variables and registers is enabled. Change this setting to True to disable this feature.
Timer

During file editing, the editor periodically checks to see if another tool has edited or deleted the files being tested. A warning is shown if an update is detected.

Use this to specify the number of seconds between checks. The default is 60 seconds. Use values greater than 30 seconds. Set to -1 to disable this feature.

Tool_saveWhen performing a build, you are prompted to resave any files that have been edited. Use this to specify automatic resaving of changed files at build time to ensure that your latest sources are included. You can also set a no-save, no-ask value.
Startup

The default start-up file, that is rvdebug.sav in your home directory, contains a list of previously edited files and information from previous debugging or editing sessions. This enables historical information to be separated from your current session.

Use this to specify a different start-up file, in a new location. Set this to - (dash) to specify that no start-up file is used.

Template

During file editing, you can use templates to speed up code development. The template file contains templates that you can use or edit as required.

By default, the file is named rvdebug.tpl and is saved in your home directory, or in your default settings directory. Use this to change this path name.

Restore_state

Not used.


Copyright © 2002-2011 ARM. All rights reserved.ARM DUI 0153N
Non-ConfidentialID052111