WebStorm
 
Get WebStorm

Intention actions

Last modified: 22 October 2024

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

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. Intention actions cover a wide range of situations from warnings to optimization suggestions.

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.