WebStorm 9.0.2 Web Help

Resolving Problems

By default, WebStorm analyses the code in all open files and highlights the detected code issues. You can fix most of the issues immediately by applying quick-fixes.

If you perform code analysis or execute a single inspection in a larger scope of source files, WebStorm displays the detected code issues in the Inspection tool window.
When you select a specific issue in this window, its report is shown in the right part of the window. If there are available fixes to the issue, WebStorm notifies it in the following ways:

  • The Apply a Quickfix intentionBulb button becomes available on the Inspection's window toolbar.
  • The available fixes are shown in the optional Problem resolution field of the report.
  • The available fixes are shown in the context menu of the issue.
If there are no available fixes, the only option is to fix the issue manually.

Please note the following:

  • To display the source code of an issue in the editor, when it is selected in the Inspections tool window, toggle the Autoscroll to Source img button.
  • If you find that some of the reported issues are minor or not helpful to you, you can ignore them either by disabling the corresponding inspection or by suppressing it in a specific piece of code.

To fix a problem reported by code inspection

  • If WebStorm suggests any fixes to the issue as described above, you can use one of them to fix the problem immediately.
    large_web_storm_resolving_problems.png
  • If no resolutions are suggested, use the Jump to source command in the context menu and fix the problem manually.
    large_web_storm_jump_to_source.png

See Also

Last modified: 11 December 2014
comments powered by Disqus