Fundamentals 14 min read

Master IntelliJ IDEA: Essential Windows Shortcuts for Faster Java Development

This article compiles a comprehensive collection of IntelliJ IDEA keyboard shortcuts for Windows, covering code generation, navigation, refactoring, debugging, and miscellaneous productivity tricks, enabling Java developers to work more efficiently and reduce reliance on the mouse.

Programmer DD
Programmer DD
Programmer DD
Master IntelliJ IDEA: Essential Windows Shortcuts for Faster Java Development

Auto Code Generation Shortcuts

Common shortcuts like fori, sout, and psvm followed by Tab instantly generate loops, System.out statements, and main method boilerplate.

For example, typing user.for + Tab expands to for (User user : users), and user.getBirthday().var + Tab creates Date birthday = user.getBirthday();.

After entering a code template, press Tab to insert the generated code.

Ctrl+Alt+O – Optimize imports.

Alt+Insert – Generate code (e.g., getters, setters, constructors) or use the right‑click Generate menu.

fori/sout/psvm + Tab – Generate loops, System.out calls, main method.

Ctrl+Alt+T – Generate try/catch block or use Alt+Enter.

Ctrl+Alt+T – Wrap selected code with try, if, else, etc.

Ctrl+O – Override method.

Ctrl+I – Implement method.

Ctrl+Shift+U – Toggle case.

Alt+Enter – Import class or apply quick fix.

Alt+/ – Code completion.

Ctrl+J – Show live templates.

Ctrl+Shift+J – Join lines.

Ctrl+Space – Basic code completion.

Ctrl+Shift+Space – Smart code completion.

Ctrl+Alt+L – Reformat code.

Ctrl+Alt+I – Auto‑indent.

Ctrl+Alt+O – Optimize imports (duplicate entry).

Alt+Insert – Generate getters/setters, constructors, etc.

Ctrl+E – Show recent changes.

Ctrl+Alt+Space – Class or interface name completion.

Ctrl+P – Parameter info.

Ctrl+Q – Show quick documentation.

Shift+F6 – Rename.

Ctrl+Alt+V – Extract variable.

Search and Navigation Shortcuts

Ctrl+Shift+Backspace – Jump to last edit location.

Ctrl+Alt+Left/Right – Navigate back/forward through edit history.

Alt+7 – Show file structure on the left.

Ctrl+F12 – Show file structure popup.

Alt+F7 – Find usages of a function, variable, or class.

Alt+F7 – Find all references (duplicate entry).

Ctrl+Shift+Alt+N – Find a method or variable in the project.

Shift+Double‑Click – Search all directories for a file.

Ctrl+N – Find a class.

Ctrl+Shift+N – Find a file.

Ctrl+G – Go to line.

Ctrl+F – Find text in the current window.

Ctrl+Shift+F – Find text in a specified scope.

Ctrl+R – Replace text in the current window.

Ctrl+Shift+R – Replace text in a specified scope.

Alt+Shift+C – Find modified files.

Ctrl+E – Open recent files.

F3 – Find next occurrence.

Shift+F3 – Find previous occurrence.

Alt+F3 – Highlight all occurrences of selected text.

F4 – Find variable declaration source.

Ctrl+Shift+O – Show search dialog.

Ctrl+W – Expand selection; repeat to select larger code blocks.

Alt+6 – Find TODO items.

Other Useful Shortcuts

Shift+Enter – Start a new line.

Ctrl+Z – Undo.

Ctrl+Shift+Z – Redo.

Ctrl+Alt+F12 – Open file explorer.

Alt+F1 – Locate file in directory.

Shift+Alt+Insert – Column (block) mode.

Ctrl+F4 – Close current window.

Ctrl+Alt+V – Introduce variable (e.g., new String() auto‑import).

Ctrl+~ – Switch UI theme, code style, keymap, etc.

Debugging Shortcuts

Commonly used keys are F8, F7, and F9; the notable "Drop Frame" lets you restart execution from the beginning of a method.

Alt+F8 – Evaluate expression while debugging.

Alt+Shift+F9 – Choose Debug configuration.

Alt+Shift+F10 – Choose Run configuration.

Ctrl+Shift+F9 – Compile.

Ctrl+Shift+F8 – View breakpoints.

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 – Resume program.

Alt+F10 – Jump to breakpoint.

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

IntelliJ offers many shortcuts that can replace most mouse actions, making development feel like playing a piano.

1. Smart Completion

Ctrl+Shift+Space – Context‑aware completion.

2. Self‑Repair

Alt+Enter – Quick fix.

3. Refactor Everything

Ctrl+Shift+Alt+T – Open Refactor This.

Additional top shortcuts include navigation with Ctrl+Alt+Left/Right, jumping to the last edit with Ctrl+Shift+Backspace, and others listed above.

Original Source

Signed-in readers can open the original source through BestHub's protected redirect.

Sign in to view source
Republication Notice

This article has been distilled and summarized from source material, then republished for learning and reference. If you believe it infringes your rights, please contactadmin@besthub.devand we will review it promptly.

IntelliJ IDEAkeyboard shortcutsIDE productivity
Programmer DD
Written by

Programmer DD

A tinkering programmer and author of "Spring Cloud Microservices in Action"

0 followers
Reader feedback

How this landed with the community

Sign in to like

Rate this article

Was this worth your time?

Sign in to rate
Discussion

0 Comments

Thoughtful readers leave field notes, pushback, and hard-won operational detail here.