Extra blank lines in editor
已回答
The java editor is displaying extra space between methods and enum items. In the examples below there are no blank lines in the files but the java editor is displaying the files with extra space. You can see this with the extra space between the line numbers.
This seems to have started with the latest 2022.1 update.
What setting do I need to change to get rid of these extra spaces?


请先登录再写评论。
Hi Brian,
This must be a recent regression: https://youtrack.jetbrains.com/issue/IDEA-290051
The fix should be available in the next bugfix release for version 2022.1 due end of April.
Possible workarounds for now are:
Code Visionif you don't use itCode Authorpart of the code vision inlay hintseditor.codeVision.new=falsein Help | Edit Custom Properties, and restart the IDESorry for the inconvenience.
Thanks for your help. I don't use Code Vision and turned it off and the extra lines are gone.
I'm so glad I found this. Thank you, Arina.
Hi. I have disabled Code Vision as described above, but just wanted you to know that this issue is still present in IntelliJ IDEA 2022.2.1
The issue should be fixed. If you see it in the current version, please file a new bug.