Home > Enterprise >  How to Remove Unnecessary Line Spacing in Code Editor?
How to Remove Unnecessary Line Spacing in Code Editor?

Time:05-04

How can I get rid of the unnecessary line breaks in the Java code editor (see screenshot). This formatting seems to apply just to one project. When I create new projects, there is no extra line spacing.

Thanks!

enter image description here

CodePudding user response:

I believe this is related to Inlay Hints. I had the same issue and it was driving me nuts, then after a restart a bunch of code hints showed up. While useful in the right circumstance, it was a bit baffling when all I could see were these ghost lines. After disabling "Code vision" the issue resolved itself.

Go to settings (Ctrl-Alt-S), under Editor-Inlay Hints there is a checkbox for Code vision. Uncheck that and see if that helps.

  • Related