Basic Editing
Starting the Editor
To start the editor:
- Click the editor control on the WorkShop tool bar.
The main project source file (if one exists and is
accessible) is automatically loaded. If a main project
source file is not available, you can start typing
immediately into a new, unnamed file, or you can open and
edit an existing file.
Opening an Existing File
There are two ways you can open an existing file:
- Click the Open file control in the editor.
- Choose File=>Open.
These commands activate a file chooser. Select a file in
your file system.
Saving Files
There are two ways to save the file you are currently editing:
- Click the Save Current File control.
- Choose File=>Save.
If you want to save the current file to a different file name:
To save all the files currently being edited in all
open editors:
Inserting Text
To insert text:
- Move the cursor
to a location in the text and start typing. You can move
the cursor using either the mouse or the arrow keys.
Deleting Text
There are a number of ways to delete text:
- Delete one character to the left of the cursor using the Back Space key
- Delete one character to the right of the cursor using the Delete key
- Delete selected text using the Delete key
- Delete the current line using Control-d
Selecting Text
You can select text in the following ways:
- Drag through the text you wish to select.
- Click at the beginning of a selection and
Shift-click at the end of the selection.
- Double-click on a word to select it.
- Triple-click on a line to select it.
- Use Shift-arrow keys to select text (Windows 95/NT only).
You can perform the following actions on selected text:
- Copy the text to the clipboard (and subsequently paste
it to a new insert point). Choose Edit=>Copy or use Control-c.
- Cut the text and place it on the clipboard (and subsequently paste
it to a new insert point). Choose Edit=>Cut menu item or
use Control-x.
- Paste copied or cut text to a new insert point. Choose
Edit=>Paste or use Control-v.
- Type-to-replace the selected text. If you type while
text is selected, the selected text is replaced with the
characters you type.
Searching for and Replacing Text
To search for a text string:
To search for and then replace a text string:
- Choose Edit=>Replace or use Control-r to open the
Replace dialog box.
To repeat a search or replace operation:
- Choose Edit=>Repeat Last menu item or use Control-a.
Navigating Within the Editor
Use the following keys to navigate within the editor window:
- Home
- Positions the cursor at the beginning of the current line.
- End
- Positions the cursor at the end of the current line
- Control-Home
- Positions the cursor at the beginning of the file
- Control-End
- Positions the cursor at the end of the file
- PageUp
- Positions the cursor at the beginning of the preceding text page
- PageDown
- Positions the cursor at the beginning of the succeeding text page
- Control-PageUp
- Positions the cursor at top line of the current display
- Control-PageDown
- Positions the cursor at bottom line of the current display
- Control-UpArrow
- Scrolls the display up one line
- Control-DownArrow
- Scrolls the display down one line
- Control-LeftArrow
- Moves the cursor one word to the left
- Control-RightArrow
- Moves the cursor one word to the right
See also:
- Editor Controls
- Version Control
- Editing Source (Previous Topic)