Skip to content

Option to Specify Line Height as a Multiple of Font Size #115960

@cpsauer

Description

@cpsauer

Small usability tweak request:
It'd be really nice to be able to specify editor line height as a multiple of font size.

Pitch for why it's worth considering:

  • It'd be more consistent with the other line height settings in VSCode. (markdown.preview.lineHeight and terminal.integrated.lineHeight are both multipliers--only editor.lineHeight is absolute).
  • It would also unbreak dynamically resizing code on the fly, which is often important while communicating, like in teaching.
  • Seems like lots of people change this setting, since VSCode's spacing default is significantly bigger than most editors and people like seeing lots of code on the page. And this leads to confusion because most line spacing settings are a multiplier, in VSCode and elsewhere.

Being able to (optionally) specify the value in ems would solve the problem, while remaining backwards compatible. To give concrete examples, "15" could remain a valid value (implicitly in pixels), but 1.25em could also be a valid value that would rescale properly if the text size were changed.

Thank you for your consideration--and a truly excellent piece of software!

Metadata

Metadata

Assignees

Labels

editor-coreEditor basic functionalityfeature-requestRequest for new features or functionalityinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions