Edit menu

The Edit menu contains commands for editing source code. Choose one of the following commands for more information.


Edit|Undo

In the Editor, un-does your most recent keystrokes or mouse actions. In the UI Designer, un-does an action.

In the Editor, Undo can reinsert any characters you delete, delete any characters you insert, replace any characters you overwrite, or move your cursor back to its prior position.

You can undo multiple successive actions by choosing Undo repeatedly. This undoes your changes by "stepping back" through your actions and reverting them to their previous state. You can specify an undo limit on the Editor page of the Environment Options dialog box.

If you undo a block operation, your file appears as it was before you executed the block operation.

The Undo command does not change an option setting that affects more than one window. Check Group Undo on the Editor page of the Environment Options dialog box to undo a group of actions.


Edit|Redo

Reverses the effects of your most recent undo. Redo only has effect immediately after an Undo command.


Edit|Cut

Removes selected text from its current position in the Editor and places it on the clipboard.

Cut replaces the current clipboard contents with the selected item. To insert the contents of the clipboard elsewhere choose Edit|Paste.


Edit|Copy

Places an exact copy of the selected text on the clipboard and leaves the original untouched. Copy replaces the current clipboard contents with the selected items.


Edit|Paste

Inserts the contents of the clipboard into the active source code in the Editor. Text is inserted at the current cursor position.

You can paste the current contents of the clipboard as many times as you like until you cut or copy new text onto the clipboard.


Edit|Delete

Removes the selected text without placing a copy on the clipboard.

Delete is useful if you want to remove an item but you do not want to overwrite the contents of the clipboard.

Even though you cannot paste deleted text, you can restore it by immediately choosing Edit|Undo.


Edit|Select All

Selects the entire source code file in the Editor. Any editing actions, such as Cut, Copy, or Paste will be performed on the entire file.