CLion
 
Get CLion
Join the CLion 2025.1 Early Access Program and try out new features before they are released! Find out more

Fix problems

Last modified: 22 November 2024

By default, CLion analyzes the code in all open files and highlights the detected code issues. You can fix most of the issues immediately by applying quick-fixes.

Place the caret at the highlighted piece of code and press AltEnter:

Applying a quick-fix in the editor

You can also hover over the highlighted element and apply a quick-fix from the inspection popup:

Applying a quick-fix in the editor

For some inspections, you can open a preview by pressing CtrlShift0I.

If you perform code analysis or execute a single inspection in a larger scope of source files, CLion displays the detected code issues in the Problems tool window. When you select a specific issue in this window, its report is shown in the right part of the window.