| |||
| Home > Workspace Settings Reference > ALL > 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:
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
| Name | Properties |
|---|---|
Disable | By 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. NoteIf 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 NoteThe file extension is only used if a backup directory is not specified. |
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
| Name | Properties |
|---|---|
Tabs_to_spaces | Converts tabs to spaces when the file is saved. |
Spaces_to_tabs | Converts spaces to tabs when the file is read. |
To_spaces_ext | Use this to specify file extensions where tab conversions take place. Specify a list separated by semi-colons (;) |
To_tabs_ext | Use this to specify file extensions where space conversions take place. Specify a list separated by semi-colons (;). |
This group is deprecated.
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
| Name | Properties |
|---|---|
Drag_drop_dis | Use this to disable drag-and-drop editing when working in a source code view. |
Vi | Deprecated. |
Indent | Use 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. |
Undo | Use this to specify the levels of undo and
redo. By default, this is set to 64. |
Tab | Use 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. |
Shift | Use 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_number | By 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_tooltip | By 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 |
Tool_save | When 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 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 |
Restore_state | Not used. |