The Productivity Shortcuts.

Akshay S
3 min readJul 11, 2017

--

People are good, they are smart but when they get tools they make wonders. Being a programmer its always a necessary thing to know your tools. If you want to make a beautiful softwares and you don’t have a right tool you probably will not finish it or you will lose trying. To complete your work on time you should know your tools well.

I will be listing down some shortcuts of Intellij IDEA which I use rigorously during development. I will be updating these shortcuts here in the course of time. I use MacOS but you can easily find key mappings for Linux and Windows in Intellij preferences. I am using Mac OS X 10.5+ key mapping here. This key mapping will similar to mac shortcuts. I will also update the key mappings for Mac OS X in coming days which is similar to Linux and Windows operating systems. The following shortcuts will cover Navigation shortcuts, Refactor shortcuts and Code shortcuts.

Navigation Shortcuts :

Navigating to class file

⌘O : Open any class file in project.

⌘⇧O : Open any file in the project.

⇧⇧ : Search everywhere in the project.

⌘↑ : Navigation Bar.

⌘L : Jump to line number.

⌘E : Recently opened files.

⌃⇥ : Switching between tool windows and working editor.

⌘B : Jump to declaration of code.

⌥⌘B : Jump to implementation of code.

There are many other navigation shortcuts which you can dig into but I will be covering most used shortcuts by me.

Refactor Shortcuts :

Changing method signature

⌘F6 : Changing signature of the method across the project.

⇧F6 : Renaming file/variable across the project.

⌥⌘F : Make field.

⌥⌘C : Make constant.

⌥⌘V : Make variable.

⌥⌘P : Make method parameter.

⌥⌘M : Make method.

If you are following TDD pattern then these refactor shortcuts are life saver.

Code Shortcuts :

Code generation

⌘N : Generate..

⌃O : Override methods.

⌃I : Implement methods.

⌥⌘L : Reformat code.

⌃⌥O : Optimize imports.

⇧⌘↑ : Move line up.

⇧⌘↓ : Move line down.

⌘/ : Comment single line.

⌥⌘/ : Comment block of lines.

I have tried to cover most of the shortcuts which I use on regular basis. I will be adding more if I find something useful.

--

--

Akshay S

Gamer, Product Manager, Bike Rider, Technophile, Android Developer, Pixar fan, Ferrari tifosi, and an Art Lover!