120 IntelliJ Idea Keyboard Shortcuts

Shifting from Eclipse Java shortcuts to IntelliJ shortcuts would not make a huge difference. After the introduction of IntelliJ, Eclipse didn’t work well for me anymore for Java development.

The following list of IntelliJ shortcuts for Windows and Mac users will help developers. The shortcuts are grouped into various sections: Editing Shortcuts, Compile and Run Shortcuts, Debugging Shortcuts, Navigation Shortcuts, and Find and Replace Shortcuts. Download the IntelliJ Shortcuts PDF.

Most Used IntelliJ Shortcuts

ActionIntelliJ Shortcuts WindowsIntellij Shortcuts Mac
Open the corresponding tool windowAlt + 0…9Option + 0…9
Save allCtrl + SCommand + S
SynchronizeCtrl + Alt + YCommand + Option + Y
Toggle maximizing editorCtrl + Shift + F12Command + Shift + F12
Add to FavoritesAlt + Shift + FOption + Shift + F
Inspect the current file with the current profileAlt + Shift + IOption + Shift + I
Quick switch current schemeCtrl + ‘Command + ‘
Open Settings dialogCtrl + Alt + SCommand + Option + S
Open Project Structure dialogCtrl + Alt + Shift + SCommand + Option + Shift + S
Find ActionCtrl + Shift + ACommand + Shift + A
Switch between tabs and tool windowCtrl + TabCommand + Tab
Create the new scratch fileCtrl + Shift + Alt + InsertCommand + Shift + Option + Insert

Editing Shortcuts

ActionIntellij Shortcuts WindowsIntellij Shortcuts Mac
Basic code completionCtrl + SpacebarCommand + Spacebar
Smart code completionCtrl + Shift + SpacebarCommand + Shift + Spacebar
Complete statementCtrl + Shift + EnterCommand + Shift + Return
Parameter infoCtrl + PCommand + P
Quick documentation lookupCtrl + QCommand + Q
External DocShift + F1Shift + F1
Show descriptions of errors or warnings at caretCtrl + F1Command + F1
Generate codeAlt + InsertOption + Insert
Override methodsCtrl + OCommand + O
Implement methodsCtrl + ICommand + I
Surround with if..else, etc.Ctrl + Alt + TCommand + Option + T
Comment or uncomment with line commentCtrl + /Command + /
Comment or uncomment with block commentCtrl + Shift + /Command + Shift + /
Select successively increasing code blocksCtrl + WCommand + W
Decrease current selection to the previous stateCtrl + Shift + WCommand + Shift + W
Context infoAlt + QOption + Q
Show intentional actions and quick-fixesAlt + EnterOption + Return
Reformat codeCtrl + Alt + LCommand + Option + L
Optimize importsCtrl + Alt + OCommand + Option + O
Auto-indent linesCtrl + Alt + ICommand + Option + I
Indent selected linesTabTab
Unindent selected linesShift + TabShift + Tab
Cut current lineCtrl + XCommand + X
Copy current lineCtrl + CCommand + C
Paste from clipboardCtrl + VCommand + V
Paste from recent buffersCtrl + Shift + VCommand + Shift + V
Duplicate current lineCtrl + DCommand + D
Delete line at caretCtrl + YCommand + Y
Smart line joinCtrl + Shift + JCommand + Shift + J
Smart line splitCtrl + EnterCommand + Return
Start new lineShift + EnterShift + Return
Toggle case for word at caretCtrl + Shift + UCommand + Shift + U
Select till the code block endCtrl + Shift + ]Command + Shift + ]
Select till the code block startsCtrl + Shift + [Command + Shift + [
Delete to Word endCtrl + DeleteCommand + Delete
Delete to Word and startCtrl + BackspaceCommand + Backspace
Expand code blockCtrl + +Command + +
Collapse code blockCtrl + –Command + –
Expand allCtrl + Shift + +Command + Shift + +
Collapse allCtrl + Shift + –Command + Shift + –
Close the active editor tabCtrl + F4Command + F4
Find usagesAlt + F7Option + F7
Find usages in the fileCtrl + F7Command + F7
Highlight usages in the fileCtrl + Shift + F7Command + Shift + F7
Show usagesCtrl + Alt + F7Command + Option + F7
CopyF5F5
MoveF6F6
Safe DeleteDeleteDelete
RenameShift + F6Shift + F6
Change SignatureCtrl + F6Command + F6
InlineCtrl + Alt + NCommand + Option + N
Extract MethodCtrl + Alt + MCommand + Option + M
Extract VariableCtrl + Alt + VCommand + Option + V
Extract FieldCtrl + Alt + FCommand + Option + F
Extract ConstantCtrl + Alt + CCommand + Option + C
Extract ParameterCtrl + Alt + PCommand + Option + P

Compile and Run Shortcuts

ActionIntellij Shortcuts WindowsIntellij Shortcuts Mac
Make project compileCtrl + F9Command + F9
Compile selected file, package, or moduleCtrl + Shift + F9Command + Shift + F9
Select configuration and runAlt + Shift + F10Option + Shift + F10
Select configuration and debugAlt + Shift + F9Option + Shift + F9
RunShift + F10Shift + F10
DebugShift + F9Shift + F9
Run context configuration from the editorCtrl + Shift + F10Command + Shift + F10

Debugging Shortcuts

ActionIntellij Shortcuts WindowsIntellij Shortcuts Mac
Commit project to VCSCtrl + KCommand + K
Update project from VCSCtrl + TCommand + T
View recent changesAlt + Shift + COption + Shift + C
VCS quick popupAlt + ‘Option + ‘
Step overF8F8
Step intoF7F7
Smart step intoShift + F7Shift + F7
Step outShift + F8Shift + F8
Run to cursorAlt + F9Option + F9
Evaluate expressionAlt + F8Option + F8
Resume programF9F9
Toggle breakpointCtrl + F8Command + F8
View breakpointsCtrl + Shift + F8Command + Shift + F8

Navigation Shortcuts

ActionIntellij Shortcuts WindowsIntellij Shortcuts Mac
Go to classCtrl + NCommand + N
Go to fileCtrl + Shift + NCommand + Shift + N
Go to symbolCtrl + Alt + Shift + NCommand + Option + Shift + N
Go back to the previous tool windowF12F12
Go to editorEscEsc
Hide active or last active windowShift + EscShift + Esc
Close active runCtrl + Shift + F4Command + Shift + F4
Go to lineCtrl + GCommand + G
Recent files popupCtrl + ECommand + E
Navigate backwardCtrl + Alt + Left Arrow keyCommand + Option + Left Arrow key
Navigate forwardCtrl + Alt + Right Arrow keyCommand + Option + Right Arrow key
Navigate to the last edit locationCtrl + Shift + BackspaceCommand + Shift + Backspace
Select the current file or symbol in any viewAlt + F1Option + F1
Go to declarationCtrl + BCommand + B
Go to ImplementationCtrl + Alt + BCommand + Option + B
Open quick definition lookupCtrl + Shift + ICommand + Shift + I
Go to the type declarationCtrl + Shift + BCommand + Shift + B
Go to super-methodCtrl + UCommand + U
Go to the previous methodAlt + Up Arrow keyOption + Up Arrow key
Go to the next methodAlt + Down Arrow keyOption + Down Arrow key
Move to code block endCtrl + ]Command + ]
Move to code block startCtrl + [Command + [
File structure popupCtrl + F12Command + F12
Type hierarchyCtrl + HCommand + H
Method hierarchyCtrl + Shift + HCommand + Shift + H
Call hierarchyCtrl + Alt + HCommand + Option + H
Next highlighted errorF2F2
Previously highlighted errorShift + F2Shift + F2
Edit sourceF4F4
View sourceCtrl + EnterCommand + Return
Show navigation barAlt + HomeOption + Home
Toggle bookmarkF11F11
Toggle bookmark with mnemonicCtrl + F11Command + F11
Show bookmarksShift + F11Shift + F11

Find & Replace Shortcuts

ActionIntellij Shortcuts WindowsIntellij Shortcuts Mac
FindCtrl + FCommand + F
Find nextF3F3
Find PreviousShift + F3Shift + F3
ReplaceCtrl + RCommand + R
Find in pathCtrl + Shift + FCommand + Shift + F
Replace in pathCtrl + Shift + RCommand + Shift + R

With IntelliJ shortcuts, we can keep our hands on the keyboard, and things can be done at a faster pace. For a developer, those little seconds saved will add up to increased efficiency in their work. In other words, IntelliJ shortcuts will skyrocket your productivity while coding. Visual Studio shortcuts can also be used for coding as an alternative to IntelliJ.

READ NEXT:

Back to top button