I am using Eclipse for Java programming but lines in the editor look too close together.
I want to change the amount spacing/gap between lines. Is there an option in Eclipse that I can use to do this?
I am using Eclipse for Java programming but lines in the editor look too close together.
I want to change the amount spacing/gap between lines. Is there an option in Eclipse that I can use to do this?
I've cloned and installed the font from
https://github.com/andreberg/Meslo-Font
and made it my IDE editor font for Eclipse. Line spacing is much better now!
After trying various alternative fonts, I've took original Consolas
and increased line height in font editor, installed resulting ConsolasHigh
font package into system and set it as default in Eclipse editor:
You could configure a formatter (Preferences | Java | Code Style) to inject extra empty lines. Otherwise, you might be able to find a font (Preferences | General | Appearance | Colors and Fonts) with a lot of built-in whitespace. On Windows, I like 'consolas'--it's not particularly whitespace-y but it is a nice mono-spaced, readable font.
you could put overly high characters in some comment somewhere, try "|ÄÁg$ÑĈђךןﭼژçÅẤДАБψ". As soon as Eclipse sees this in a file, it'll increase the line-separation for the whole file to properly display thos characters.
Create your own bitmap font that uses all of the rows at the top of the font. It does work, and seems to save about up to 4 rows of pixels in a 17 point font. I did it as follows:
With respect to my response above, I can now provide more detail as to how to create the font, along with suggestions for creating a nicer font (starting with a truetype font):
Remember that the font size you see in eclipse for a particular setting e.g. 9 actually corresponds to about an 11 point font with less space between the lines
On linux with gtk you can also play with a .gtkrc file. See here and here as examples.
Of course this doesn't help anything on windows :)
As of Eclipse 4.27, now you can adjust the line spacing at Preference -> General -> Editors -> Text Editors
Be aware that HiDPI might causing inconsistency depending on your system
https://bugs.eclipse.org/bugs/show_bug.cgi?id=26765
https://github.com/eclipse-platform/eclipse.platform.text/pull/119
© 2022 - 2024 — McMap. All rights reserved.