Commit
Use this settings page to configure the commit options.
Item | Description |
|---|---|
Clear initial commit message | Select this option if you do not want to automatically fill the commit message fields with the previous commit message. |
Commit message inspections | Select the inspections that you want to be applied to the commit message. |
Commit checks
Item | Description |
|---|---|
Reformat code | Perform code formatting according to the Project Code Style settings. |
Rearrange code | Rearrange your code according to the arrangement rules preferences. |
Optimize imports | Remove redundant import statements. |
Cleanup | Automatically apply the current inspection profile to the files you are going to commit/shelve. |
Advanced commit checks
Use the controls in this area to define which additional actions you want CLion to perform after committing the selected files.
Item | Description |
|---|---|
Analyze code | Analyze modified files while committing them. Click Configure to select an inspection profile from which the IDE will run inspections. |
Check TODO (<filter name>) | Review the TODO items matching the specified filter. Click Configure to choose an existing TODO filter or open the TODO settings page and define a new filter to be applied. |
Run tool | From this list, select the external tool that you want CLion to launch after the selected changes have been committed. You can select a tool from the list, or click the Browse button |
Run advanced checks after a commit is done | Enable advanced checks to run after you commit your changes. Even if some checks fail, your changes will still be committed. |