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

Get results and fix problems

Last modified: 07 September 2023

If an inspection has detected a problem in your code, you can quickly apply a fix in the editor. Place the caret at the highlighted piece of code and press AltEnter.

https://resources.jetbrains.com/help/img/idea/2023.2/ws_resolveProblems.png
Gif

WebStorm shows an interactive preview next to the quick-fix for some inspections for example, Assignment used as condition, Unreachable 'case' branch of a 'switch' statement, Assignment used as condition, and others. You can hide and show this preview by pressing Ctrl0Q.

https://resources.jetbrains.com/help/img/idea/2023.2/ws_inspection_fix_preview.png
Gif