Eden Salomon
Eden Salomon

Reputation: 267

Visual Studio Different Line Heights in the Editor

I've been using vs2013 for quite some time and noticed something that is quite bothering me.

In the Code Editor, lines that contain nothing but symbols (such as '{', '/' '*' etc..) have a different line‑height / font‑size than other lines that also contain letters.

I search through the settings and couldn't find a way to turn this behavior off.

My question is if there's a way to turn this behavior off, and have consistent line heights throughout my entire code.

Upvotes: 20

Views: 5636

Answers (2)

Julian
Julian

Reputation: 934

For the VS2019 it is quite similar to the provided solutions:

Tools -> Options-> Productiviry Power Tools -> General

Under "Syntatic line compression options" you uncheck: "Compress lines that does not have any alphanumeric characters" like {,[ and so on

You also can uncheck "Compress blank lines" but this will be only for lines without anything in it.

Upvotes: 3

Sergey Vlasov
Sergey Vlasov

Reputation: 27890

You probably have Productivity Power Tools installed with Syntactic line compression enabled. You can turn it off in VS Options - Productivity Power Tools - Other Extensions.

Upvotes: 35

Related Questions