Get results and fix problems

Last modified: 18 December 2021

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 Alt+Enter.

https://resources.jetbrains.com/help/img/idea/2021.2/rm_inspection_fix.png
Gif

For some inspections, you can open a preview by pressing Ctrl+Shift+I (View | Quick Definition).

Quick-fix preview

If you have invoked inspections manually, you can examine the results in the Inspection Results tool window that opens automatically after the analysis is finished. All detected problems are listed in the left part of the tool window. Click a problem to display inspection details on the right.