CLion 2016.1 Help

Reformat File Dialog

Code | Reformat Code

The Ctrl+Alt+L command will try to reformat the source code of the specified scope automatically. This dialog box appears when you press Ctrl+Shift+Alt+L in the editor of the current file.

Only VCS changed textIf 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.
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 check box to remove unused import statements from the code within the selected scope.

See Also


External Links:

Last modified: 20 July 2016