How enable auto-format code for Intellij IDEA? October 26, 2022 by Tarik The formatting shortcuts in Intellij IDEA are : For Windows : Ctrl + Alt + L For Ubuntu : Ctrl + Alt + Windows + L For Mac : ⌥ (Option) + ⌘ (Command) + L