Boost Your Java Productivity: Top IntelliJ IDEA Shortcuts You Must Know
This guide compiles essential IntelliJ IDEA shortcuts—including automatic code generation, navigation, editing, debugging, and refactoring keys—organized by function, to help Java developers work faster, reduce mouse reliance, and streamline everyday coding tasks.
Automatic Code Generation
Common shortcuts like fori, sout, and psvm followed by Tab generate loops, System.out statements, and main methods. For example, typing user.for + Tab creates a for(User user : users) loop, and user.getBirthday().var + Tab creates a variable assignment.
Ctrl+Alt+O – Optimize imports
Alt+Insert – Generate code (getters, setters, constructors, etc.)
fori/sout/psvm + Tab – Generate boilerplate code
Ctrl+Alt+T – Generate try‑catch or use Alt+Enter for quick fixes
Ctrl+Alt+T – Wrap selected code in try, if, else Ctrl+O – Override method
Ctrl+I – Implement method
Ctrl+Shift+U – Toggle case
Alt+Enter – Import and auto‑fix
Alt+/ – Code completion
Ctrl+J – Show live templates
Ctrl+Shift+J – Join lines
Ctrl+Space – Basic code completion
Ctrl+Shift+Space – Smart completion
Ctrl+Alt+L – Reformat code
Ctrl+Alt+I – Auto‑indent
Ctrl+E – Recent changes
Ctrl+Alt+Space – Class or interface name completion
Ctrl+P – Parameter info
Ctrl+Q – Show documentation
Shift+F6 – Rename (refactor)
Ctrl+Alt+V – Extract variable
Search Shortcuts
Ctrl+Shift+Backspace – Jump to last edit location
Ctrl+Alt+Left/Right – Navigate back/forward in edit history
Alt+7 – Show file structure on the left
Ctrl+F12 – Pop‑up file structure
Alt+F7 – Find usages of a symbol
Ctrl+Alt+F7 – Find all references
Ctrl+Shift+Alt+N – Find method or variable in a class
Double‑Shift – Search Everywhere (classes, files, symbols, actions)
Ctrl+N – Find class
Ctrl+Shift+N – Find file
Ctrl+G – Go to line
Ctrl+F / Ctrl+Shift+F – Find in current file or whole project
Ctrl+R / Ctrl+Shift+R – Replace in current file or whole project
Alt+Shift+C – Find modified files
Ctrl+E – Recent files
F3 / Shift+F3 – Navigate to next/previous match
Alt+F3 – Highlight all occurrences of selected text
F4 – Show variable source
Ctrl+Shift+O – Show search dialog
Ctrl+W – Expand selection; Ctrl+Shift+W – Shrink selection
F2 / Shift+F2 – Jump to next/previous error or warning
Ctrl+Up/Down – Move cursor to start/end of file
Ctrl+B – Go to declaration
Ctrl+Alt+B – Find subclass or implementation
Ctrl+F12 – Show method list of current class
Other Useful Shortcuts
Shift+Enter – Start a new line
Ctrl+Z – Undo
Ctrl+Shift+Z – Redo
Ctrl+Alt+F12 – Open file explorer
Alt+F1 – Reveal file in system explorer
Shift+Alt+Insert – Column (block) selection mode
Ctrl+F4 – Close current tab
Ctrl+~ – Switch UI theme, code style, keymap, etc.
Debug Shortcuts
Common debugging keys include F7 (step into), Shift+F7 (smart step into), Alt+Shift+F7 (force step into), F8 (step over), Shift+F8 (step out), Alt+Shift+F8 (force step over), Alt+F9 (run to cursor), Ctrl+Alt+F9 (force run to cursor), F9 (continue), Alt+F10 (go to breakpoint), and Alt+F8 (evaluate expression).
Refactoring Shortcuts
Ctrl+Alt+Shift+T – Open Refactor This menu
Shift+F6 – Rename
F6 – Move
F5 – Copy
Alt+Delete – Safe delete
Ctrl+Alt+N – Inline
Top 10 IntelliJ IDEA Shortcuts (by Frequency)
Ctrl+Space – Basic code completion
Alt+Enter – Quick fix / auto‑import
Ctrl+Shift+Alt+T – Refactor everything
Ctrl+Shift+Space – Smart completion
Ctrl+Shift+A – Find any action/command
Shift+Shift – Search Everywhere
Alt+Insert – Generate code (getters, setters, etc.)
Ctrl+Tab – Switch between open tabs
Ctrl+W – Expand selection
Ctrl+Shift+Enter – Complete statement (add brackets, semicolon)
Using these shortcuts can keep your hands on the keyboard for over 90% of the time, dramatically improving coding efficiency.
Signed-in readers can open the original source through BestHub's protected redirect.
This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactand we will review it promptly.
Programmer DD
A tinkering programmer and author of "Spring Cloud Microservices in Action"
How this landed with the community
Was this worth your time?
0 Comments
Thoughtful readers leave field notes, pushback, and hard-won operational detail here.
