IntelliJ IDEA · Refactoring

Reformat the current file or selection

Apply the project code style to the file or selected code.

++L
Mac
⌘ + ⌥ + L
Windows
Ctrl + Alt + L
Linux
Ctrl + Alt + L

More refactoring shortcuts in IntelliJ IDEA

See all 29 IntelliJ IDEA shortcuts →