Key promoter plugin
There is a handy plugin, which helps you to learn all the necessary keyboard shortcuts in IntelliJ IDEA - Key promoter. How does it work? It is quite simple:
- Every time you click using your mouse on a button/command/menu item/... it shows you a pop-up displaying a keyboard shortcut for that action.
- If you click the same action several times (can be configured), plugin suggest to set up the keyboard shortcut for given action.
- The statistics of your top missed keyboard shortcuts are calculated, so you know which shortcuts it is worth learning first.
And that's it. The effect is two-fold. First, when you see a pop-up with the shortcut every time you click, sooner or later you remember the shortcut. Moreover, for your frequently clicked actions, the pop-up becomes so annoying after a while, that you'll do anything (hopefully learn the shortcut) to avoid seeing it again. This plugin is especially useful when transitioning from a different IDE like Eclipse or NetBeans and you don't know any shortcuts at all.
What's also useful is that Key Promoter will detect that you're frequently clicking items, which currently don't have any keyboard shortcut and will offer you to create one.
Getting the plugin
To install the plugin go to the Settings → Plugins → Markteplace
and search for Key Promoter X. Key Promoter is an original version of the plugin by Dmitry Kashin, which is no longer under active development. Key Promoter X is a reworked version of that original plugin started by Aimo Thiele and now developed and maintained by Patrick Scheibe. The original plugin was last updated in 2012 and does not work well in new versions of IDEA.
You can check the source code or contribute in this GitHub repository
You can't remember them all
Knowing all the useful shortcuts is no doubt handy and a big time-saver. It does, however, take some time to learn them. In the meantime, it is useful to remember some shortcuts, which can compensate for your lack of knowledge of others. The first one is Find action (Ctrl+Shift+A or ⇧+⌘+A on Mac) dialog, which lets you search for specific actions and commands and quickly execute them.
And of course, if everything else fails, there is always the almighty Search everywhere feature using double Shift, which also lists actions.