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

Get results and fix problems

Last modified: 12 March 2024

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.

IntelliJ IDEA shows an interactive preview next to the quick-fix for some inspections. You can hide and show this preview by pressing Ctrl0Q.

https://resources.jetbrains.com/help/img/idea/2023.3/inspection-fix.png
Gif