IntelliJ IDEA

IntelliJ IDEA, developed by JetBrains and released in 2001, is one of the most loved Integrated Development Environments (IDEs) for Java and beyond. It’s known for its smart code completion, deep debugging, and seamless refactoring tools that make coding efficient. Fun fact: IntelliJ IDEA was the first IDE to introduce intelligent code suggestions, setting the standard for modern coding tools. Loved by millions of developers, it’s like having a coding assistant by your side!

Shortcuts

Remember these shortcuts

WindowMacDescription
CtrlShiftSpace
βŒƒβ‡§Space
Smart code completion
ShiftShift
⇧⇧
Search everywhere
AltEnter
βŒ₯⏎
Show intention actions and quick-fixes
AltIns
⌘N
Generate code
CtrlP
⌘P
Parameter info
CtrlW
βŒ₯↑
Extend selection
CtrlShiftW
βŒ₯↓
Shrink selection
CtrlE
⌘E
Recent files popup
ShiftF6
⇧F6
Rename

General

WindowMacDescription
Alt
⌘
Open corresponding tool window
CtrlS
⌘S
Save all
CtrlAltY
⌘βŒ₯Y
Synchronize
CtrlShiftF12
βŒ˜β‡§F12
Toggle maximizing editor
AltShiftI
βŒ₯⇧I
Inspect current file with current profile
Ctrl`
βŒƒ`
Quick switch current scheme
CtrlAltS
⌘,
Open Settings dialog
CtrlAltShiftS
⌘;
Open Project Structure dialog
CtrlShiftA
βŒ˜β‡§A
Find Action

Debugging

WindowMacDescription
F8
F8
Step over
F7
F7
Step into
ShiftF7
⇧F7
Smart step into
ShiftF8
⇧F8
Smart step out
AltF9
βŒ₯F9
Run to cursor
AltF8
βŒ₯F8
Evaluate expression
F9
⌘βŒ₯R
Resume program
CtrlF8
⌘F8
Toggle breakpoint
CtrlShiftF8
βŒ˜β‡§F8
View breakpoints

Search / Replace

WindowMacDescription
ShiftShift
⇧⇧
Search everywhere
CtrlF
⌘F
Find
F3
⌘G
Find next
ShiftF3
βŒ˜β‡§G
Find previous
CtrlR
⌘R
Replace
CtrlShiftF
βŒ˜β‡§F
Find in path
CtrlShiftR
βŒ˜β‡§R
Replace in path
AltJ
βŒƒG
Select next occurrence
CtrlAltShiftJ
βŒƒβŒ˜G
Select all occurrences
AltShiftJ
βŒƒG
Unselect occurrence

Editing

WindowMacDescription
CtrlSpace
βŒƒSpace
Basic code completion
CtrlShiftSpace
βŒƒβ‡§Space
Smart code completion
CtrlShiftEnter
βŒ˜β‡§βŽ
Complete statement
CtrlP
⌘P
Parameter info
CtrlQ
⌘J
Quick documentation lookup
ShiftF1
⇧F1
External Doc
CtrlF1
⌘F1
Show descriptions of error at caret
AltIns
βŒƒβŽ
Generate code
CtrlO
βŒƒO
Override methods
CtrlI
βŒƒI
Implement methods
CtrlAltT
⌘βŒ₯T
Surround with
Ctrl/
⌘/
Comment / uncomment with line comment
CtrlShift/
⌘βŒ₯/
Comment / uncomment with block comment
CtrlW
βŒ₯↑
Extend selection
CtrlShiftW
βŒ₯↓
Shrink selection
AltQ
βŒƒβ‡§Q
Context info
AltEnter
βŒ₯⏎
Show intention actions and quick-fixes
CtrlAltL
⌘βŒ₯⏎
Reformat code
CtrlAltO
βŒƒβŒ₯O
Optimize imports
CtrlAltI
βŒƒβŒ₯I
Auto-indent line(s)
Tab
β‡₯
Indent selected lines
ShiftTab
⇧β‡₯
Unindent selected lines
CtrlX
⌘X
Cut current line to clipboard
CtrlC
⌘C
Copy current line to clipboard
CtrlV
⌘V
Paste from clipboard
CtrlShiftV
βŒ˜β‡§V
Paste from recent buffers
CtrlD
⌘D
Duplicate current line
CtrlY
⌘⌫
Delete line at caret
CtrlShiftJ
βŒƒβ‡§J
Smart line join
CtrlEnter
⌘⏎
Smart line split
ShiftEnter
β‡§βŽ
Start new line
CtrlShiftU
βŒ˜β‡§U
Toggle case for word at caret or selected block
CtrlShift[
⌘βŒ₯⇧[
Select till code block start
CtrlShift]
⌘βŒ₯⇧]
Select till code block end
CtrlDel
βŒ₯Del
Delete to word end
CtrlBackspace
βŒ₯⌫
Delete to word start
Ctrl+
⌘+
Expand code block
Ctrl-
⌘-
Collapse code block
CtrlShift+
βŒ˜β‡§+
Expand all
CtrlShift-
βŒ˜β‡§-
Collapse all
CtrlF4
⌘W
Close active editor tab

Refactoring

WindowMacDescription
F5
F5
Copy
F6
F6
Move
AltDel
⌘Del
Safe Delete
ShiftF6
⇧F6
Rename
CtrlAltShiftT
βŒƒT
Refactor this
CtrlF6
⌘F6
Change Signature
CtrlAltN
⌘βŒ₯N
Inline
CtrlAltM
⌘βŒ₯M
Extract Method
CtrlAltV
⌘βŒ₯V
Extract Variable
CtrlAltF
⌘βŒ₯F
Extract Field
CtrlAltC
⌘βŒ₯C
Extract Constant
CtrlAltP
⌘βŒ₯P
Extract Parameter

Navigation

WindowMacDescription
CtrlN
⌘O
Go to class
CtrlShiftN
βŒ˜β‡§O
Go to file
CtrlAltShiftN
⌘βŒ₯O
Go to symbol
Alt→
βŒƒβ†’
Go to next editor tab
Alt←
βŒƒβ†
Go to previous editor tab
F12
F12
Go back to previous tool window
Esc
βŽ‹
Go to editor (from tool window)
ShiftEsc
β‡§βŽ‹
Hide active or last active window
CtrlG
⌘L
Go to line
CtrlE
⌘E
Recent files popup
CtrlShiftE
βŒ˜β‡§E
Recent locations popup
CtrlAlt←
⌘βŒ₯←
Navigate back
CtrlAlt→
⌘βŒ₯β†’
Navigate forward
CtrlShiftBackspace
βŒ˜β‡§βŒ«
Navigate to last edit location
AltF1
βŒ₯F1
Select current file or symbol in any view
CtrlB
⌘B
Go to declaration
CtrlAltB
⌘βŒ₯B
Go to implementation(s)
CtrlShiftI
βŒ₯Space
Open quick definition lookup
CtrlShiftB
βŒƒβ‡§B
Go to type declaration
CtrlU
⌘U
Go to super-method / super-class
Alt↑
βŒƒβ†‘
Go to previous method
Alt↓
βŒƒβ†“
Go to next method
Ctrl[
⌘βŒ₯[
Move to code block start
Ctrl]
⌘βŒ₯]
Move to code block end
CtrlF12
⌘F12
File structure popup
CtrlH
βŒƒH
Type hierarchy
CtrlShiftH
βŒ˜β‡§H
Method hierarchy
CtrlAltH
βŒƒβŒ₯H
Call hierarchy
F2
F2
Next highlighted error
ShiftF2
⇧F2
Previous highlighted error
F4
F4
Edit source
CtrlEnter
βŒ˜β†“
View source
AltHome
βŒ₯Home
Show navigation bar
F11
F3
Toggle bookmark
CtrlF11
βŒ₯F3
Toggle bookmark with mnemonic
Ctrl
βŒƒ
Go to numbered bookmark
ShiftF11
⌘F3
Show bookmarks

Compile and run

WindowMacDescription
CtrlF9
⌘F9
Build project
CtrlShiftF9
βŒ˜β‡§F9
Compile selected file, package or module
AltShiftF9
βŒƒβŒ₯D
Select configuration and debug
AltShiftF10
βŒƒβŒ₯R
Select configuration and run
ShiftF9
βŒƒD
Debug
ShiftF10
βŒƒR
Run
CtrlShiftF10
βŒƒβ‡§R
Run context configuration from editor
CtrlCtrl
βŒƒβŒƒ
Run anything

Usage search

WindowMacDescription
AltF7
βŒ₯F7
Find usages
CtrlF7
⌘F7
Find usages in file
CtrlShiftF7
βŒ˜β‡§F7
Highlight usages in file
CtrlAltF7
⌘βŒ₯F7
Show usages

VCS / Local history

WindowMacDescription
CtrlK
⌘K
Commit project to VCS
CtrlT
⌘T
Update project from VCS
CtrlShiftK
βŒ˜β‡§K
Push commits
Alt`
βŒƒV
'VCS' quick popup

Live Templates

WindowMacDescription
CtrlAltJ
⌘βŒ₯J
Surround with Live Template
CtrlJ
⌘J
Insert Live Template