← All articles
Tools1 min read

IntelliJ IDEA Shortcuts Every Java Dev Should Know

IntelliJ rewards keyboard fluency more than almost any other IDE. These shortcuts turn navigation and refactoring into reflexes.

S

Swapnika Voora

Author

IntelliJ IDEA is dense with features, and most of them are a keystroke away if you know the binding. Investing an afternoon in these pays back for years of Java development.

Search everywhere

The single most useful shortcut is Search Everywhere — double-tap Shift. It finds classes, files, actions, and settings from one box.

finding things
Shift Shift          Search everywhere
Ctrl/Cmd + N         Go to class
Ctrl/Cmd + Shift + N Go to file
Ctrl/Cmd + Shift + A Find any action by name
Ctrl/Cmd + E         Recent files

Jumping between definitions, usages, and implementations keeps you in flow.

navigation
Ctrl/Cmd + B         Go to declaration
Ctrl/Cmd + Alt + B   Go to implementation
Alt + F7             Find usages
Ctrl/Cmd + F12       File structure popup
Ctrl/Cmd + G         Go to line

Write less, generate more

IntelliJ can generate boilerplate and complete statements for you.

generation
Alt + Insert         Generate (constructor, getters, equals...)
Ctrl/Cmd + Shift + Enter   Complete current statement
Ctrl/Cmd + P         Show parameter info
Ctrl/Cmd + Space     Basic code completion

Takeaways

  • Double-Shift Search Everywhere replaces most menu navigation.
  • Ctrl/Cmd + B and Alt + F7 make reading unfamiliar code fast.
  • Alt + Insert generates the boilerplate you'd otherwise type by hand.

Open Help → Keymap Reference to print the full cheat sheet, and consider the "Key Promoter X" plugin to learn bindings as you work.

#intellij#java#productivity

More in Tools