The best IntelliJ IDEA keyboard shortcuts for Mac

IntelliJ IDEA is one of my favourite IDEs, and a key reason for that is the great shortcuts that makes my life easier when developing software.

Here are a few of the most useful ones:

Control + Option + O – Optimises Imports (removes imports you don’t need)

Command + Option + L – Formats your code

Option + Enter – Import (if on a red highlighted piece of code)

Command + / – Line comments all selected code

Command + Shift + / – Block comment for all selected code

Command + J – Brings up live templates
(then you can type for example m – and in Python it will auto generate the main method)

Written on June 17, 2020

My Latest Video: