You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Support variable line heights in the editor #147067
This would allow to use larger font sizes for markdown headers.
Reacted by Simon Chan, universemaster, heartacker, Matt-Kaminski, yichen, Sindre Sorhus, Fabio Spampinato, Mark Eibes, Rebecca Clair, Lukas and 19 more
Reacted by Yukai Huang, Alexander, byehack, Chris Cain, Mark Eibes, folcik, Tejasvi S. Tomar and mavcook
Grammar makes sense for markdown headers but editor decorations would be great too. For example, adding an image decoration (bigger than one line) without a webview (like code inset #85682).
+1 on this
Decorations can already modify the font size/font family/line height of a portion of text, but none of those changes render properly without the line height being variable.
Use cases for this include:
Different font (size/family/height) for keywords or for searched text
Inline markdown editor/viewer
Inline images or icons
Increasing or reducing the size of font/lines that may be irrelevant (say, big function header comments can be slightly smaller if you want them to be less distracting, or TODO items could be larger or more apparent)
Could allow some very clever community extensions for "rich" editing (I understand this is not intended to be a rich text editor, but it is very close to being able to be one)
This issue will be used to track variable line heights only
The following issue will be used to track variable fonts: #237346. Ie, the previous issue will be used to track adding the possibility to define different font families, font sizes etc.
The issue is therefore split into two parts.
So yesterday we have merged code to allow variable line heights to be defined. This is now possible. I am currently working on allowing variable font sizes/families in the editor. The relevant issue is here: #237346
Reacted by Mr Beedell, Roke Julian Lockhart and Maik Thalmann
Activity
usernamehw commentedon May 5, 2022
Henning Dieterichs (@hediet) Is this issue for TextMate grammar or editor decorations or both?
Grammar makes sense for markdown headers but editor decorations would be great too. For example, adding an image decoration (bigger than one line) without a webview (like code inset #85682).
hediet commentedon May 5, 2022
It is not clear yet what mechanism will be used for that.
How would you add that image if you could set the line height? By using css?
usernamehw commentedon May 5, 2022
It's already supported, the image is just very small (1 line).
In decoration options
after.contentIconPathHmmm, actually it renders the full image ignoring
width&heightyume-chan commentedon May 11, 2022
Another use case would be shrinking empty lines #66468
Visual Studio has an extension (by Microsoft) to do that. https://marketplace.visualstudio.com/items?itemName=VisualStudioPlatformTeam.SyntacticLineCompression2022
folcik commentedon Mar 31, 2023
+1 on this
Decorations can already modify the font size/font family/line height of a portion of text, but none of those changes render properly without the line height being variable.
Use cases for this include:
MrScottyTay commentedon Nov 14, 2023
+1 Trying to migrate over to VS Code and the shrink empty lines extension for Visual Studio was amazing
aiday-mar commentedon Jan 6, 2025
This issue will be used to track variable line heights only
The following issue will be used to track variable fonts: #237346. Ie, the previous issue will be used to track adding the possibility to define different font families, font sizes etc.
The issue is therefore split into two parts.
0009-0009-1013-986X commentedon Apr 15, 2025
aiday-mar commentedon Apr 15, 2025
So yesterday we have merged code to allow variable line heights to be defined. This is now possible. I am currently working on allowing variable font sizes/families in the editor. The relevant issue is here: #237346