IntelliJ IDEA
 
Get IntelliJ IDEA
You are viewing the documentation for an earlier version of IntelliJ IDEA.

Reformat File dialog

Last modified: 08 March 2021

Code | Reformat Code

Ctrl+Alt+Shift+L

The dialog appears when you press Ctrl+Alt+Shift+L in the editor of the current file. If you choose Code | Reformat Code from the main menu or press Ctrl+Alt+L, IntelliJ IDEA tries to reformat the source code of the specified scope automatically.

For more details on how to reformat, or exclude files from formatting, refer to Reformat and rearrange code.