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

Code formatting

Last modified: 10 November 2021

CLion lets you reformat your code according to the requirements you've specified in the Code Style settings.

To access the settings, in the Settings/Preferences dialog Ctrl+Alt+S, go to Editor | Code Style. See Code style for details.

You can reformat a part of code, the whole file, group of files, a directory, and a module. You can also exclude part of code or some files from the reformatting.