Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

Intellij changing line spacing automatically

I have recently migrated to Intellij 2022.1.2 and sometimes the IDE will just change the line spacing randomly between different code sections: annotation / function definition, imports / class definition etc.

This behavior seems to be very erratic, sometimes I just restart the IDE and all lines are ok again, sometimes the changes are persistent.

Here is an example:

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

enter image description here

enter image description here

This is a little bit irritating. Is there any way to disable it?

>Solution :

These empty lines you see are placeholders for additional information about the code in the editor. They are called ‘Inlay Hints’ and you can configure them in the Settings dialog.

If they are non-empty, these lines may look like this:

Non-empty inlay hint

That these lines appear as empty placeholders is indeed irritating. Maybe it will be fixed in one of the next releases.

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading