AppCode 2021.1 Help

Reformat File dialog

Code | Reformat Code


The dialog appears when you press ⌃⌥⇧L in the editor of the current file. If you choose Code | Reformat Code from the main menu or press ⌃⌥L, AppCode 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.

Only VCS changed textIf this checkbox is selected, then reformatting will apply only to the files that have been changed locally, but not yet checked in to the repository.
This checkbox is only available for the files under version control.
Selected textChoose this option to have the currently selected fragment of source code reformatted.
Whole fileChoose this option to have all the source code in the current file reformatted.
Optimize importsSelect this checkbox to remove unused import statements from the code within the selected scope.
Code cleanupSelect this option to run the code cleanup inspections. AppCode finds and automatically fixes potentially problematic code fragments.
Last modified: 08 March 2021