Line height and font size are too large by default
See original GitHub issue- VSCode Version: 1.10.2
- OS Version: win10 x64 My monitor native resolution is 1920x1200
When opening any file in VSCode, it shows only 56 lines at any time. I feel that the current line height and font size are too much by default.
For reference:
Sublime Text 3: 71 lines
Notepad++ 6.9: 65 lines
gVim 7.4: 66 lines
UltraEdit 23: 67 lines
In contrast, Atom 1.15 displays even less: 49 lines
By default VSCode has in its settings:
"editor.fontSize": 14, // Controls the font size in pixels.
"editor.lineHeight": 0 // Controls the line height. Use 0 to compute the lineHeight from the fontSize.
If I set them to 13 and 15 respectively then the visible lines area becomes on par with the other editors: 71 lines.
Also, (while using the default Dark+
theme
and the default setting "editor.fontFamily": "Consolas, 'Courier New', monospace"
)
with my suggested settings, 13pt Consolas I think it is appears a bit boldish.
Changing the value"editor.fontWeight": "normal"
to anything below 400 doesn’t make a difference. (related issue: #381)
That’s why I believe that, in conjunction with the above two suggested changes,
it would be even better to switch to a slightly different font that would support setting fontWeight
below 400 e.g. something like “Consolas Light” -I know that this font currently doesn’t exit- )
So, my suggestion is to change the default values of these settings to 13 and 15 respectively,
plus lower the fontWeight
value somehow
Here is VSCode with its default settings: screenshot 682
And here is comparison of VSCode with my suggested settings vs Sublime Text 3:
Issue Analytics
- State:
- Created 6 years ago
- Reactions:6
- Comments:7 (2 by maintainers)
Top GitHub Comments
Can’t agree more. However even I set font size to 13, the margin between lines are still larger than sublime text. Looks pretty strange and difficult to read than ST.
This is Sublime Text
This is VS code:
Hey fellow folks interested in font/line height configuration in VSCode: Any chance we could get your upvote over on #115960?
We’re trying to get line height expressible as a ratio of font size, as it is in other editors and in other parts of VSCode, and we could really use your help. We’ve got just a few more days to get those last few votes! It’d make it much easier to dynamically resize fonts!