RubyMine 7.0.0 Web Help

Function Shortcut Use this shortcut to...
Enter EnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnterEnter Depending on the context:
  • In a lookup list: select an item.
  • In the editor: enter a new line and set the caret at its beginning.
Tab TabTabTabTabTabTabTabTabTabTabTabTabTab In the editor:
  • With selection: indent selected lines.
  • Without selection: insert a tab symbol (or corresponding number of space characters).
In a lookup list:
  • No code after the caret: select an item.
  • Some code after the caret: select an item and substitute the code after the caret with it.
Delete DeleteDeleteDeleteDeleteDelete or Ctrl+DDeleteDeleteDeleteDelete or Meta+BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete, Backspace or Command BackspaceDelete or Command Backspace Depending on the context:
  • In the editor: delete selected symbol/block.
  • In a usage view: exclude a selected item.
  • In other views: remove selected items.
Backspace Backspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift+BackspaceBackspace or Shift BackspaceBackspace or Shift BackspaceBackspace or Shift BackspaceBackspace or Shift Backspace Delete a character to the left of the caret.
Undo 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+ZMeta+ZCommand ZCommand ZCommand ZCommand Z Undo last operation.
Redo 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+Meta+Z or Shift+Alt+BackspaceShift Command Z or Shift Alt BackspaceShift Command Z or Shift Alt BackspaceShift Command ZShift Command Z or Shift Alt Backspace Redo last undone operation.
Cut Ctrl+X or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteShift+Delete or Alt+XCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteCtrl+X or Shift+DeleteMeta+X or Shift+DeleteCommand X or Shift DeleteCommand X or Shift DeleteCommand X or Shift DeleteCommand X or Shift Delete Cut a current line or a selected code block to the Clipboard.
Copy Ctrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+Insert, Alt+C or Escape, WCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertCtrl+C or Ctrl+InsertMeta+C or Meta+InsertCommand C or Command InsertCommand C or Command InsertCommand C or Command InsertCommand C or Command Insert Copy a current line or a selected code block to the Clipboard.
Paste Ctrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertAlt+P, Shift+Insert or Ctrl+YCtrl+V or Shift+InsertCtrl+V or Shift+InsertCtrl+V or Shift+InsertMeta+V or Shift+InsertCommand V or Shift InsertCommand V or Shift InsertCommand V or Shift InsertCommand V or Shift Insert Paste from the Clipboard to the caret location.
Paste from History Ctrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertAlt+YCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertCtrl+Shift+V or Ctrl+Shift+InsertShift+Meta+V or Shift+Meta+InsertShift Command V or Shift Command InsertShift Command V or Shift Command InsertShift Command V or Shift Command InsertShift Command V or Shift Command Insert Paste selected entry from the Clipboard to the caret location.
Up UpUpUpUpUp or Ctrl+PUpUpUpUpUp or Control PUpUp or Control PUp Move the caret one line up.
Up with Selection Shift+UpShift+UpShift+UpShift+UpShift+UpShift+UpShift+UpShift+UpShift+UpShift UpShift UpShift UpShift Up Move the caret one line up selecting the text.
Down DownDownDownDownDown or Ctrl+NDownDownDownDownDown or Control NDownDown or Control NDown Move the caret one line down.
Down with Selection Shift+DownShift+DownShift+DownShift+DownShift+DownShift+DownShift+DownShift+DownShift+DownShift DownShift DownShift DownShift Down Move the caret one line down selecting the text.
Left LeftLeftLeftLeftLeft or Ctrl+BLeftLeftLeftLeftLeft or Control BLeftLeft or Control BLeft Move the caret one character to the left.
Left with Selection Shift+LeftShift+LeftShift+LeftShift+LeftShift+LeftShift+LeftShift+LeftShift+LeftShift+LeftShift LeftShift LeftShift LeftShift Left Move the caret one character to the left selecting the text.
Right RightRightRightRightRight or Ctrl+FRightRightRightRightRight or Control FRightRight or Control FRight Move the caret one character to the right.
Right with Selection Shift+RightShift+RightShift+RightShift+RightShift+RightShift+RightShift+RightShift+RightShift+RightShift RightShift RightShift RightShift Right Move the caret one character to the right selecting the text.
Go to Page Bottom Ctrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownCtrl+Page DownShift+Alt+Page DownCtrl+Page DownMeta+Page DownCommand Page DownCommand Page DownCommand Page DownCommand Page Down Move the caret down to the page bottom.
Go to Page Bottom with Selection Ctrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownCtrl+Shift+Page DownShift+Meta+Page DownShift Command Page DownShift Command Page DownShift Command Page DownShift Command Page Down Move the caret down to the page bottom, selecting the text.
Go to Page Top Ctrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpCtrl+Page UpShift+Alt+Page UpCtrl+Page UpMeta+Page UpCommand Page UpCommand Page UpCommand Page UpCommand Page Up Move the caret up to the page top.
Go to Page Top with Selection Ctrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpCtrl+Shift+Page UpShift+Meta+Page UpShift Command Page UpShift Command Page UpShift Command Page UpShift Command Page Up Move the caret up to the page bottom, selecting the text.
Page Down Page DownPage DownPage DownPage DownPage Down or Ctrl+VPage DownPage DownPage DownPage DownPage DownPage DownPage DownPage Down Move the caret one page down.
Page Down with Selection Shift+Page DownShift+Page DownShift+Page DownShift+Page DownShift+Page DownShift+Page DownShift+Page DownShift+Page DownShift+Page DownShift Page DownShift Page DownShift Page DownShift Page Down Move the caret one page down, selecting the text.
Page Up Page UpPage UpPage UpPage UpPage Up, Ctrl+Z or Alt+VPage UpPage UpPage UpPage UpPage UpPage UpPage UpPage Up Move the caret one page up.
Page Up with Selection Shift+Page UpShift+Page UpShift+Page UpShift+Page UpShift+Page UpShift+Page UpShift+Page UpShift+Page UpShift+Page UpShift Page UpShift Page UpShift Page UpShift Page Up Move the caret one page up, selecting the text.
Scroll Down Ctrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownCtrl+DownMeta+DownEditorScrollDownCommand DownEditorScrollDownCommand Down Scroll the text one line down.
Scroll to Center Ctrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MCtrl+MEditorScrollToCenterEditorScrollToCenterEditorScrollToCenterShift Command M Scroll a line at caret to the center of the screen.
Scroll Up Ctrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpCtrl+UpMeta+UpEditorScrollUpCommand UpEditorScrollUpCommand Up Scroll the text one line up.
Move to Line End EndEndEndEndEnd or Ctrl+EEndEndEndEnd or Meta+RightEnd, Command Right or Control EEnd or Command RightEnd, Command Right or Control EEnd or Command Right Move the caret to the end of line.
Move to Line End with Selection Shift+EndShift+EndShift+EndShift+EndShift+EndShift+EndShift+EndShift+EndShift+End or Shift+Meta+RightShift End or Shift Command RightShift End or Shift Command RightShift End or Shift Command RightShift End or Shift Command Right Move the caret to the end of line, selecting the text.
Move to Line Start HomeHomeHomeHomeHome, Ctrl+A or Alt+MHomeHomeHomeHome or Meta+LeftHome, Command Left or Control AHome or Command LeftHome, Command Left or Control AHome or Command Left Move the caret to the beginning of line.
Move to Line Start with Selection Shift+HomeShift+HomeShift+HomeShift+HomeShift+HomeShift+HomeShift+HomeShift+HomeShift+Home or Shift+Meta+LeftShift Home or Shift Command LeftShift Home or Shift Command LeftShift Home or Shift Command LeftShift Home or Shift Command Left Move the caret to the beginning of line, selecting the text.
Move to Next Word Ctrl+RightCtrl+RightCtrl+RightCtrl+RightCtrl+Right, Alt+F or Escape, Ctrl+FCtrl+RightCtrl+RightCtrl+RightAlt+RightAlt RightAlt RightAlt RightAlt Right Move the caret to the next word.
Move to Next Word with Selection Ctrl+Shift+RightCtrl+Shift+RightCtrl+Shift+RightCtrl+Shift+RightCtrl+Shift+RightCtrl+Shift+RightCtrl+Shift+RightShift+Alt+Right or Ctrl+Shift+RightShift+Alt+RightShift Alt RightShift Alt RightShift Alt RightShift Alt Right Move the caret to the next word, selecting it.
Move to Previous Word Ctrl+LeftCtrl+LeftCtrl+LeftCtrl+LeftCtrl+Left, Alt+B or Escape, Ctrl+BCtrl+LeftCtrl+LeftCtrl+LeftAlt+LeftAlt LeftAlt LeftAlt LeftAlt Left Move the caret to the previous word.
Move to Previous Word with Selection Ctrl+Shift+LeftCtrl+Shift+LeftCtrl+Shift+LeftCtrl+Shift+LeftCtrl+Shift+LeftCtrl+Shift+LeftCtrl+Shift+LeftShift+Alt+Left or Ctrl+Shift+LeftShift+Alt+LeftShift Alt LeftShift Alt LeftShift Alt LeftShift Alt Left Move the caret to the previous word, selecting it.
Move to Text End Ctrl+EndCtrl+EndCtrl+EndCtrl+EndCtrl+End or Shift+Alt+PeriodCtrl+EndCtrl+EndCtrl+EndMeta+EndCommand EndCommand EndCommand EndCommand End Move the caret to the end of text.
Move to Text End with Selection Ctrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndCtrl+Shift+EndShift+Meta+EndShift Command EndShift Command EndShift Command EndShift Command End Move the caret to the end of text, selecting it.
Move to Text Start Ctrl+HomeCtrl+HomeCtrl+HomeCtrl+HomeCtrl+Home, Shift+Alt+Comma or Escape, CommaCtrl+HomeCtrl+HomeCtrl+HomeMeta+HomeCommand HomeCommand HomeCommand HomeCommand Home Move the caret to the beginning of text.
Move to Text Start with Selection. Ctrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeCtrl+Shift+HomeShift+Meta+HomeShift Command HomeShift Command HomeShift Command HomeShift Command Home Move the caret to the beginning of text, selecting it.
Select All Ctrl+ACtrl+ACtrl+ACtrl+ACtrl+X, HCtrl+ACtrl+ACtrl+AMeta+ACommand ACommand ACommand ACommand A Select the entire text opened in the editor.
Delete Line at Caret Ctrl+YCtrl+YCtrl+YCtrl+YCtrl+YCtrl+Shift+LCtrl+ECtrl+DMeta+YCommand BackspaceCommand YCommand DCommand Y Delete the line where the caret is currently located.
Delete to Word End Ctrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteCtrl+DeleteAlt+DeleteAlt DeleteAlt DeleteCommand DeleteAlt Delete Delete the word starting from the current caret location up to the word end.
Delete to Word Start Ctrl+BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+Backspace, Alt+Backspace or Escape, BackspaceCtrl+BackspaceCtrl+BackspaceCtrl+BackspaceAlt+BackspaceAlt BackspaceAlt BackspaceCommand BackspaceAlt Backspace Delete the word starting from the current caret location up to the word start.
Toggle Insert/Overwrite InsertInsertInsertInsertInsertInsertInsertInsertInsertShift BackspaceInsertShift BackspaceInsert Toggle insert/overwrite modes.
Duplicate Line or Block Ctrl+DCtrl+DCtrl+DCtrl+DMeta+DCtrl+DCtrl+D, Ctrl+Shift+Down or Ctrl+Shift+UpCtrl+DCtrl+Shift+DCommand DCommand DCommand DCommand D Duplicate selected block or the line at the caret.
Toggle Case Ctrl+Shift+UCtrl+Shift+UCtrl+Shift+UCtrl+Shift+UCtrl+Shift+UCtrl+Shift+UCtrl+U, SCtrl+Shift+U, Ctrl+Shift+X or Ctrl+Shift+YCtrl+G, Ctrl+U or Ctrl+Shift+UShift Command UShift Command UShift Command X or Shift Command YShift Command U Toggle case of the selected text block.
Move to Code Block End Ctrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close BracketCtrl+Close Bracket, Ctrl+Alt+Close Bracket or Ctrl+Alt+BCtrl+Close Bracket or Ctrl+AsteriskCtrl+Close BracketCtrl+Close Bracket or Ctrl+Shift+PCtrl+Close Bracket or Ctrl+EAlt Command Close BracketCommand Close BracketControl Close Bracket or Control Shift PControl Close Bracket or Control E Move the caret to the current code block end, highlighting the block limits.
Move to Code Block End with Selection Ctrl+Shift+Close BracketCtrl+Shift+Close BracketCtrl+Shift+Close BracketCtrl+Shift+Close BracketCtrl+Shift+Close Bracket or Ctrl+Shift+Alt+FCtrl+Shift+Close BracketCtrl+Shift+Close BracketCtrl+Shift+Close BracketCtrl+Shift+Close Bracket or Ctrl+Shift+EShift Alt Command Close BracketShift Command Close BracketShift Alt Command Close BracketControl Shift Close Bracket or Control Shift E Move the caret to the current code block end, selecting the code beginning from the initial caret location.
Move to Code Block Start Ctrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket, Ctrl+Alt+Open Bracket or Ctrl+Alt+FCtrl+Open BracketCtrl+Open BracketCtrl+Open BracketCtrl+Open Bracket or Ctrl+AAlt Command Open BracketCommand Open BracketAlt Command Open BracketControl Open Bracket or Control A Move the caret to the current code block start, highlighting the block limits.
Move to Code Block Start with Selection Ctrl+Shift+Open BracketCtrl+Shift+Open BracketCtrl+Shift+Open BracketCtrl+Shift+Open BracketCtrl+Shift+Open Bracket or Ctrl+Shift+Alt+BCtrl+Shift+Open BracketCtrl+Shift+Open BracketCtrl+Shift+Open BracketCtrl+Shift+Open Bracket or Ctrl+Shift+AShift Alt Command Open BracketShift Command Open BracketShift Alt Command Open BracketControl Shift Open Bracket or Control Shift A Move the caret to the current code block start, selecting the code beginning from the initial caret location.
Start New Line Shift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift+EnterShift EnterShift EnterShift EnterShift Enter Start a new line after the current one positioning the caret in accordance with the current indentation level.
Start New Line Before Current One Ctrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterCtrl+Alt+EnterAlt+Meta+EnterAlt Command EnterAlt Command EnterAlt Command EnterAlt Command Enter Start a new line before the current one.
Join Lines Ctrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JCtrl+Shift+JControl Shift JControl Shift JControl Shift JControl Shift J Concatenate the selected lines into one or concatenate the line where the caret is currently located with the next line.
Split Line Ctrl+EnterCtrl+EnterCtrl+EnterCtrl+EnterCtrl+OCtrl+EnterCtrl+EnterCtrl+EnterMeta+EnterCommand EnterCommand EnterCommand EnterCommand Enter or Control O Split the selected line at the point where the caret is located, leaving the caret at the end of the first line.
Select Word at Caret Ctrl+WCtrl+WCtrl+WCtrl+WCtrl+Alt+WCtrl+WShift+Alt+PeriodShift+Alt+UpCtrl+W or Shift+Meta+BAlt UpCommand WControl Shift UpControl W Select successively increasing code blocks starting from the current caret location.
Unselect Word at Caret Ctrl+Shift+WCtrl+Shift+WCtrl+Shift+WCtrl+Shift+WCtrl+Shift+WCtrl+Shift+WShift+Alt+CommaShift+Alt+DownCtrl+Shift+WAlt DownShift Command WControl Shift DownControl Shift W Remove sequentially the selection made by the action.
Indent Selection TabTabTabTabTabTabTabTabTabTabTabTabTab Move the selected block to the next indentation level.
Unindent Selection Shift+TabShift+TabShift+TabShift+TabShift+TabShift+TabShift+Alt+Left or Shift+TabShift+TabMeta+Open BracketShift TabShift TabShift TabShift Tab Move the selected block to the previous indentation level.
Auto-Indent Lines Ctrl+Alt+ICtrl+Alt+ICtrl+Alt+ICtrl+Alt+ICtrl+Alt+I or Ctrl+Alt+QCtrl+Alt+ICtrl+Alt+ICtrl+IAlt+Meta+Open BracketControl Alt IAlt Command ICommand IAlt Command I Indent the current line or selected block according to the Code Style settings.

See Also

Procedures:

Reference:

Getting Started:

Web Resources: