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|
||Jump to next method||137|
||Go back/forward location||101|
||Switch to next file||65|
||Show action intentions||56|
||Go to declaration||51|
||Find in path||47|
||(In debug) Step over||43|
||Search current file||32|
||Generate code (can be done in multiple views)||31|
||(With code highlighted) Extract method||28|
||(In debug) Open evaluation window||26|
||(In debug) Step into||22|
||Close current tab||21|
||Find all usages||17|
||Opens up file explorer||15|
||Basic code completion||14|
||(In debug) Resume Program||11|
||Complete current statement||9|
||Create new file||7|
||(In debug) Continue execution and stop at cursor||5|
||(In debug) Go to where execution stopped||4|
||Paste from recent clipboards||4|
||Comment block code||3|
||Cut (line or highlighted)||3|
||Commit changes window||2|
||Replace in path||2|
||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 😆).
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