Intention actions

Last modified: 15 April 2025

As you work in the editor, IntelliJ IDEA analyzes your code and searches for ways to optimize it. Intention actions cover a wide range of situations from errors and warnings to optimization suggestions.

As soon as the IDE finds a way to improve 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 the intention actions available in the current context.

A red bulb with an exclamation mark the Quick-fix icon indicates that IntelliJ IDEA 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.