Intention actions

Last modified: 15 April 2025

As you work in the editor, WebStorm 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 yellow bulb icon yellow bulb icon also indicates that WebStorm has detected a problem and prompts you with a quick-fix for it. For severe problems, WebStorm displays a red bulb with an exclamation mark red bulb icon instead of a light yellow one yellow bulb icon. WebStorm suggests the first available quick-fix in an inspection tooltip, which appears every time you hover over a warning or an error.

For more information, refer to Configuring Inspection Severities and Code inspections.

You can open a full list of intention actions in the Settings, view their descriptions, and disable or enable them as described in View all intention actions below.