17

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.

Wai Ha Lee
  • 8,598
  • 83
  • 57
  • 92
Avalon
  • 201
  • 1
  • 2
  • 4
  • best font for that using the same size 10, are Droid Sans Mono; it reserves comment blocks slight cleaner without line gaps; – H3sDW11e Sep 23 '20 at 21:39

2 Answers2

7

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

Joe White
  • 94,807
  • 60
  • 220
  • 330
Fernando Vieira
  • 3,177
  • 29
  • 26
4

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

Jesús Hagiwara
  • 363
  • 2
  • 8
  • 14
  • For VS2022 it is also possible to select more fine-grained line spacing, at least according to [this comment](https://github.com/omsharp/LinePress/issues/12#issuecomment-979262067). – Andrej Mitrović Jan 04 '23 at 12:21