The best IntelliJ IDEA keyboard shortcuts for Mac

Published by Wayne on

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