| |||
| Home > Editing Source Code > Editing text > Basic text editing | |||
The File Editor supports the standard Windows editing operations.
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.
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.
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:
Closes selected files and removes their tabs from the File Editor pane. This closes the Save Multiple dialog box.
Saves selected files and closes the dialog box.
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.
Closes the Save Multiple dialog box without making any changes to the files.
Click to display online help.
RealView Debugger always warns if you select a file for closing that has been edited.
To add text to an open file:
Click once in the File Editor pane to position the text insertion point.
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.
RealView Debugger warns if the destination file is read-only and asks for confirmation to enable you to edit the file.
To add text to an new file:
Select File → New → Text
File from the Code window main menu. This
creates an empty tab, called <None>, in the
File Editor pane.
Begin typing on the keyboard to enter text.
Right-click on the tab to display the File tabs context menu.
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.
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.
RealView Debugger warns if the file is read-only and asks for confirmation to enable you to edit the file.