I conducted a little experiment where I logged the keyboard shortcuts I used in Intellij from roughly a days dev. The list below contains the top 50 keybinds I used in order of count.
Note: I removed a few keybinds that are not strictly Intellij e.g.
ctrl + shift + arrow keys for highlighting text,
ctrl + c,
ctrl + v, among many others.
|No.||Keybind (Mac)||What it does||Count|
|1||Jump to next method||137|
|2||Go back/forward location||101|
|3||Switch to next file||65|
|4||Show action intentions||56|
|5||Go to declaration||51|
|6||Find in path||47|
|9||(In debug) Step over||43|
|10||Search current file||32|
|11||Generate code (can be done in multiple views)||31|
|12||(With code highlighted) Extract method||28|
|13||(In debug) Open evaluation window||26|
|15||(In debug) Step into||22|
|17||Close current tab||21|
|18||Find all usages||17|
|21||Opens up file explorer||15|
|23||Basic code completion||14|
|25||(In debug) Resume Program||11|
|26||Complete current statement||9|
|27||Create new file||7|
|29||(In debug) Continue execution and stop at cursor||5|
|31||(In debug) Go to where execution stopped||4|
|32||Paste from recent clipboards||4|
|35||Comment block code||3|
|36||Cut (line or highlighted)||3|
|39||Commit changes window||2|
|40||Replace in path||2|
|44||Select next occurence||1|
It’s quite funny looking at these results, I feel as though I could have a good guess at what sort of code I was writing just from the keybinds I use. Also, it highlights potential ways I could increase my productivity by focusing more on some keybinds that could do with more usage such as the
Surround with shortcut, I’m sure I could have used it > 30 times.
Of course, your mileage will vary depending upon your preferences, the task you’re working on or even just the way you code.
These are also by no means all the keyboard shortcuts in IntelliJ (There are bloody hundreds) they are just the useful ones I’ve picked up from my years of hacking away in it.
I hope this is of use to some of you, I know it will be for me if I ever go long periods of time without using the IDE (Probably not 😆).
VSCode – Intellij IDEA Extension
If you’re coming from an Intellij background and you use VSCode, install the IntelliJ IDEA Keybindings Extension, it is bloody marvelous.
Follow me on twitter if you don’t want to miss out on absolutely brilliant programming insight: 🤣 @luke_garrigan