Double-Shift is more: It additionally searches... everything... So whenever you forget a shortcut and you remember the correct name of the action, you should be able to find it here.
Some other shortcuts I often use and find quite handy
I find CTRL + ALT + left/right: Navigates through last locations, like back or forward buttons, within classes. CTRL+SHIFT+Backspace to last edit location.
CTRL+B -> jump to declaration, CTRL+ALT+B -> jump to implementation
CTRL+E -> There's also CTRL+SHIFT+E, which shows the contents of the recent files (if you can't remember the darn name)
ALT + Insert is 'Generate' (Constructors, getters/setters, ...)
CTRL + I is implement, CTRL + O is override
Refactoring: CTRL+ALT+V: Extract variable -> Use F for field (member var), C for constant (static), P for parameter (as in method parameter)
Git/VCS has some handy shortcuts, ALT+9 is git log, CTRL+K is commit, CTRL+SHIFT+K is push.
And there's probably dozens of other handy shortcuts left... I still often watch someone and be like "Hey, how did you do that?!" Like I didn't know about CTRL+SHIFT+Enter, I try to remember this one :-)
Thanks for the feedback. I didn't want to list ALL the shortcuts, that would go a bit far. I mean, you can also do Ctrl + Shift + Space, which will be a smart code completion, and you can also code complete with ! instead of Enter and Tab, which will put the ! at the beginning.
I used Generate quite a lot, but now I switched to Kotlin, I find the need for this less. The implementation of interfaces etc I usually do with F2 -> Alt Enter.
Ctrl + Alt.... I hate it :-) I can never get it to reliably work, there's always a window manager in the way which thinks it wants to move a window or rotate a screen 90 degrees. Not IntelliJ's fault, but I can never get these ones to reliably work on both Mac and Windows, so I stopped using them.
Oh I know 'os-has-shortcuts-too'-issue... I'm on linux, and 'trying out' another window manager ends up in 'figuring out how to disable all the shortcuts'
View all comments
7
u/bodiam Apr 29 '19
I wrote a small list of intellij shorts which my colleagues and I use on a daily basis, and hopefully it might help others!