IntelliJ IDEA 11.1 Web Help

Function Keyboard shortcut Use this shortcut to...
Enter EnterEnter 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 TabTab 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 DeleteDelete 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 BackSpace or Shift+BackSpace Shift BackSpace Delete a character to the left of the caret.
Undo Ctrl+Z Command Z or Alt+BackSpace Undo last operation.
Redo Ctrl+Shift+Z Command Shift Z or Alt+Shift+BackSpace Alt Shift BackSpace Redo last undone operation.
Cut Ctrl+X Command X or Shift+Delete Shift Delete Cut a current line or a selected code block to the Clipboard.
Copy Ctrl+C Command C or Ctrl+Insert Command Insert Copy a current line or a selected code block to the Clipboard.
Paste Ctrl+V Command V or Shift+Insert Shift Insert Paste from the Clipboard to the caret location.
Paste from History Ctrl+Shift+V Command Shift V or Ctrl+Shift+Insert Command Shift Insert Paste selected entry from the Clipboard to the caret location.
Up UpUp Move the caret one line up.
Up with Selection Shift+UpShift Up Move the caret one line up selecting the text.
Down DownDown Move the caret one line down.
Down with Selection Shift+DownShift Down Move the caret one line down selecting the text.
Left LeftLeft Move the caret one character to the left.
Left with Selection Shift+LeftShift Left Move the caret one character to the left selecting the text.
Right RightRight Move the caret one character to the right.
Right with Selection Shift+RightShift Right Move the caret one character to the right selecting the text.
Go to Page Bottom Ctrl+PageDownCommand PageDown Move the caret down to the page bottom.
Go to Page Bottom with Selection Ctrl+Shift+PageDownCommand Shift PageDown Move the caret down to the page bottom, selecting the text.
Go to Page Top Ctrl+PageUpCommand PageUp Move the caret up to the page top.
Go to Page Top with Selection Ctrl+Shift+PageUpCommand Shift PageUp Move the caret up to the page bottom, selecting the text.
Page Down PageDownPageDown Move the caret one page down.
Page Down with Selection Shift+PageDownShift PageDown Move the caret one page down, selecting the text.
Page Up PageUpPageUp Move the caret one page up.
Page Up with Selection Shift+PageUpShift PageUp Move the caret one page up, selecting the text.
Scroll Down Ctrl+DownCommand Down Scroll the text one line down.
Scroll to Center Ctrl+M Scroll a line at caret to the center of the screen.
Scroll Up Ctrl+UpCommand Up Scroll the text one line up.
Move to Line End EndEnd Move the caret to the end of line.
Move to Line End with Selection Shift+EndShift End Move the caret to the end of line, selecting the text.
Move to Line Start HomeHome Move the caret to the beginning of line.
Move to Line Start with Selection Shift+HomeShift Home Move the caret to the beginning of line, selecting the text.
Move to Next Word Ctrl+RightAlt Right Move the caret to the next word.
Move to Next Word with Selection Ctrl+Shift+RightAlt Shift Right Move the caret to the next word, selecting it.
Move to Previous Word Ctrl+LeftAlt Left Move the caret to the previous word.
Move to Previous Word with Selection Ctrl+Shift+LeftAlt Shift Left Move the caret to the previous word, selecting it.
Move to Text End Ctrl+EndCommand End Move the caret to the end of text.
Move to Text End with Selection Ctrl+Shift+EndCommand Shift End Move the caret to the end of text, selecting it.
Move to Text Start Ctrl+HomeCommand Home Move the caret to the beginning of text.
Move to Text Start with Selection. Ctrl+Shift+HomeCommand Shift Home Move the caret to the beginning of text, selecting it.
Select All Ctrl+ACommand A Select the entire text opened in the editor.
Delete Line at Caret Ctrl+YCommand Y Delete the line where the caret is currently located.
Delete to Word End Ctrl+DeleteAlt Delete Delete the word starting from the current caret location up to the word end.
Delete to Word Start Ctrl+BackSpaceAlt BackSpace Delete the word starting from the current caret location up to the word start.
Toggle Insert/Overwrite InsertInsert Toggle insert/overwrite modes.
Duplicate Line or Block Ctrl+DCommand D Duplicate selected block or the line at the caret.
Toggle Case Ctrl+Shift+UCommand Shift U Toggle case of the selected text block.
Move to Code Block End Ctrl+CloseBracketCommand CloseBracket Move the caret to the current code block end, highlighting the block limits.
Move to Code Block End with Selection Ctrl+Shift+CloseBracketCommand Shift CloseBracket Move the caret to the current code block end, selecting the code beginning from the initial caret location.
Move to Code Block Start Ctrl+OpenBracketCommand OpenBracket Move the caret to the current code block start, highlighting the block limits.
Move to Code Block Start with Selection Ctrl+Shift+OpenBracketCommand Shift OpenBracket Move the caret to the current code block start, selecting the code beginning from the initial caret location.
Start New Line Shift+EnterShift Enter Start a new line after the current one positioning the caret in accordance with the current indentation level.
Join Lines Ctrl+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+EnterCommand Enter 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+WCommand W Select successively increasing code blocks starting from the current caret location.
Unselect Word at Caret Ctrl+Shift+WCommand Shift W Remove sequentially the selection made by the action.
Indent Selection TabTab Move the selected block to the next indentation level.
Unindent Selection Shift+TabShift Tab Move the selected block to the previous indentation level.
Auto-Indent Lines Ctrl+Alt+ICommand Alt I Indent the current line or selected block according to the Code Style settings.

See Also

Procedures:

Reference:

Getting Started:

Web Resources: