Ctrl+Alt+L
In this dialog box, specify the scope to apply reformatting to.
Item | Description |
---|---|
Whole file | Choose this option to have all the source code in the current file reformatted. |
Selected text | Choose this option to have the currently selected fragment of source code reformatted. |
Optimize imports | Select this check box to remove unused import statements from the code within the selected scope. |
Rearrange code | Select this check box to reorder your source code entries according to the configurations specified in the Arrangement tab of your Code Style settings. |
Only VCS changed text | If this check box is selected, then reformatting will apply only to the files
that have been
changed locally,
but not yet checked in to the repository. This check box is only available for the files under version control. |
Run | Click this button to start reformatting the source code within the specified scope. |