RubyMine 7.0.1 Web Help

In this section:

Basics

The Undo command discards the last changes to the file in the editor. The Redo command discards the results of the last Undo command.

You can undo or redo your changes as many times as required. However, when you exit RubyMine, the undo history is lost.

RubyMine smartly defines the logical steps that can be undone and redone. The following events signal about the end of a logical step:

  • Pressing EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter.
  • Repositioning the mouse cursor.
  • Using navigation keyboard shortcuts.
  • Cutting or pasting.
  • Pressing Tab.

RubyMine expands the undo and redo mechanism to complex operations, such as reformatting or refactoring source code, creating or deleting files. When you undo or redo a complex operation, RubyMine requests on your confirmation.

Undoing and redoing changes

To undo an action, do one of the following
  • On the main menu, choose Edit | Undo.
  • Press Ctrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Z or Alt+BackspaceCtrl+Shift+Minus or Ctrl+SlashCtrl+ZCtrl+Z or Alt+BackspaceCtrl+Z⌘+Z⌘ Z⌘ Z⌘ Z⌘ Z.
To redo an action, do one of the following
  • On the main menu, choose Edit | Redo.
  • Press Ctrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+BackspaceCtrl+Shift+Z or Shift+Alt+MinusCtrl+Y or Ctrl+Shift+ZCtrl+Shift+Z, Shift+Alt+Backspace or Ctrl+YCtrl+YShift+⌘+Z or Shift+Alt+BackspaceShift ⌘ Z or Shift Alt BackspaceShift ⌘ Z or Shift Alt BackspaceShift ⌘ ZShift ⌘ Z or Shift Alt Backspace.

See Also

Procedures:

Reference:

Web Resources: