How to change line spacing in Visual Studio 2019?
Asked Answered
V

2

20

In Visual Studio 2017, I reduced line spacing to fit more code on the screen.

Today I downloaded Visual Studio 2019, however, I forgot how to change line spacing. I searched the options menu, installed Productivity Power Tools, Googled for answers, reviewed all my installed extensions but still cannot find how to reduce the space between lines.

Valle answered 18/4, 2019 at 17:51 Comment(1)
best font for that using the same size 10, are Droid Sans Mono; it reserves comment blocks slight cleaner without line gaps;Reichel
D
8

There's a feature request to implement this in Visual Studio 2019. It seems to be in their backlog but no target release date nor status have been provided.

https://developercommunity.visualstudio.com/content/idea/896879/allow-users-to-set-line-height.html

In the meantime, maybe you could try to find a different Font to better achieve the desired results.

Or try this extension: LinePress

Duong answered 18/3, 2020 at 16:44 Comment(2)
Yay! Apr 2021, comment in linked thread mentions a release in an upcoming version of Visual Studio.Murcia
And the feature is now present in VS 2022 (Preview) under "Text Editor" ➝ "General" ➝ Group "Display" ➝ "Line spacing"Highsounding
I
8

For VS 2015/2017/2019

Check out the LinePress extension available on the VS Marketplace. After installing it, just go to the Tools menu > Options > LinePress > Options and there you can change the line height of the text editor to your liking. LinePress settings

For VS 2022

There's a built-in setting for that, just open the Tools menu > Options > Text Editor > General and look for a setting called Line Spacing, change its value to one of your liking. Setting line height on VS 2022

Ivan answered 15/7, 2022 at 15:40 Comment(1)
For VS2022 it is also possible to select more fine-grained line spacing, at least according to this comment.Baisden

© 2022 - 2024 — McMap. All rights reserved.