13.4.1. Basic text editing

The File Editor supports the standard Windows editing operations.

Opening files

You can open saved files ready for editing in the File Editor:

  • Select File → Open... from the Code window main menu. This displays a Select File to Open dialog box where you can locate the required file.

Closing files

You can save files after editing, for example:

  • Select File → Save from the Code window main menu. This saves the current file using the original filename.

  • Select File → Save/Close Multiple... from the Code window main menu. Select from the file list to save several files in a single step, shown in Figure 13.4.

Figure 13.4. Save Multiple dialog box

Save Multiple dialog box

The file displayed in the topmost tab of the calling window is checked by default ready to save. If a file has been edited, an asterisk (*) is appended to the front of the filename.

Select the files that you want to work on, or click AllOn to select all the files:

Close File

Closes selected files and removes their tabs from the File Editor pane. This closes the Save Multiple dialog box.

Save

Saves selected files and closes the dialog box.

Convert

Converts files from DOS to UNIX by removing end-of-line markers, or adds markers to convert UNIX files to DOS format:

  • DOS files contain \r (carriage return) and \n (line feed)

  • UNIX files contain \n (line feed).

Also converts a binary file to a text file (in the local format).

The Type column shows the current file type.

Cancel

Closes the Save Multiple dialog box without making any changes to the files.

Help

Click to display online help.

RealView Debugger always warns if you select a file for closing that has been edited.

Adding text

To add text to an open file:

  1. Click once in the File Editor pane to position the text insertion point.

  2. Begin typing on the keyboard to enter text.

You can insert text from another file by copying the text block to the clipboard and pasting into your source file at the required position.

In addition, you can use a template to insert text into an open source file within the File Editor. See Using templates for information.

Note

RealView Debugger warns if the destination file is read-only and asks for confirmation to enable you to edit the file.

Creating text

To add text to an new file:

  1. Select File → New → Text File from the Code window main menu. This creates an empty tab, called <None>, in the File Editor pane.

  2. Begin typing on the keyboard to enter text.

  3. Right-click on the tab to display the File tabs context menu.

  4. Select Save File to specify the new filename and location.

You can insert text from another file by copying the text block to the clipboard and pasting into your source file at the required position.

In addition, you can use a template to insert text into an open source file within the File Editor. See Using templates for information.

Deleting text

You can delete text in any of the following ways:

  • Press the Backspace key to delete text that precedes the text insertion point.

  • Press the Delete key to delete text that follows the text insertion point.

  • Select the text you want to delete and press the Backspace or Delete key to delete the selection.

Note

RealView Debugger warns if the file is read-only and asks for confirmation to enable you to edit the file.

Copyright © 2003, 2004 ARM Limited. All rights reserved.ARM DUI 0234B
Non-Confidential