

From an error message, you can navigate to the code where the problem occurred, or apply a quick-fix, or fix the problem manually in the Editor Preview pane ( ). The Inspection Results tab displays problems detected after running one or multiple inspections.įor each error IntelliJ IDEA shows a brief description and the number of the line where the error occurred. In this case, all problems detected in your project will be displayed on this tab. You can also enable the project-wide analysis. The Project Errors tab shows the errors in all previously opened files, with error messages grouped by files in which they were detected. The File tab shows the errors detected in the file from the active editor tab. The Problems tool window consists of two tabs: To open the Problems tool window, click the Inspections widget in the upper-right corner of the editor.Īlternatively select View | Tool windows | Problems from the main menu or press Alt+6. To resolve all the detected problems in the current file, click More actions ( Alt+Enter) and select : Fix current file from the list.Īlternatively, press Alt+Enter and choose the relevant suggestion from the list. To resolve the problem, click : Fix '' or press Alt+Shift+Enter. IntelliJ IDEA shows a tooltip with a description of the problem. In the editor, hover the mouse pointer over the highlighted problem.

View problems and apply quick-fixes in the editor See View problems and apply quick-fixes in the editor and Problems tool window for details. To open the tool window, click the Inspection widget in the upper-right corner of the editor: When installed and enabled, a linter activates automatically every time you open a JavaScript file, reports detected errors and warnings, and suggests quick-fixes where possible.ĭescriptions of the errors detected in the current file and quick-fixes for them are available from the editor and from the File tab of the Problems tool window.Įrrors in all previously opened files and quick-fixes for them are shown in the Project Errors tab of the Problems tool window.

IntelliJ IDEA integrates with ESLint and other most popular JavaScript code linters that detect problems in your code without executing it.
