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

Intention actions

Last modified: 08 November 2023

As you work in the editor, CLion analyzes your code, searches for ways to optimize it, and detects potential and actual problems.

As soon as the IDE finds a way to alter your code, it displays a yellow bulb icon yellow bulb icon in the editor next to the current line. By clicking this icon, you can view intention actions available in the current context. Intention actions cover a wide range of situations from warnings to optimization suggestions.

A red bulb with an exclamation mark the Quick-fix icon indicates that CLion has detected a problem, and prompts you to select an associated fix — a quick-fix. Quick-fixes and intention actions together are called context actions.