[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]


Undoing Changes

The CodeWarrior editor offers several ways to undo mistakes as you edit a file.


Undoing the last edit

The Undo command reverses the effect of your last action. The name of the Undo command on the Edit Menu varies, depending on your last action. For example, if you just typed some text, the name of the command changes to Undo Typing. Choose this command to remove the text you just typed.


Undoing and redoing multiple edits

When you enable the Use multiple undo option, you can undo or redo several previous actions.

For instance, if you Cut a word, then Paste it, then type some text, you can backtrack through all of those actions by choosing the Undo command three times. The first Undo removes the text you typed, the second Undo unpastes the text you pasted, and the third Undo uncuts the text you cut, therefore returning the text to its original condition. You can perform the three original activities again in the same order by choosing the Redo command three times.

To enable the Use multiple undo option, refer to "Use multiple undo."

Note that the keyboard shortcut for the Redo command changes when the Use multiple undo option is disabled.


WARNING!

The IDE saves undo actions in a stack, which could cause you to lose certain actions when you use multiple undo and redo. Each undo action adds an item to the stack, while each redo action repositions a pointer to the next undo action. For example, if there were five undo actions on the stack (ABCDE), and you redo two of them, the stack appears to the pointer like this: ABC. When you perform a new action (ABCF), the undo events (DE) are no longer available.

Reverting to the last saved version of a file

The Revert command in the File menu returns a file to its last saved version. To learn more about reverting to the previous version of a file, see "Reverting to a Previously-Saved File."


[ First ]  [ Previous ]  [ Next ]  [ Last ]  [ Manuals ]

Visit the Metrowerks website at: http://www.metrowerks.com
For assistance contact Metrowerks Technical Support at: cw_support@metrowerks.com
Copyright © 2000, Metrowerks Corp. All rights reserved.

Last updated: August 17, 2000