Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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.

like image 978
Eden Salomon Avatar asked Aug 17 '14 17:08

Eden Salomon


People also ask

How do I change the line height in Visual Studio?

For VS 2015/2017/2019 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.

How do I change the spacing in VS Code?

Type “Indentation” into the search field then head to the “Editor: Tab Size” section. Replace the default space number with your preferred one: Your setting will be applied and reflected immediately. If this doesn't happen (it's a little lag sometimes), just reload or restart your VS Code.

How do you add a space between lines in VS Code?

=>for multiline at same time you can use Shift + Alt + Up/Down arrow key then edit your code or remove/add space.

How do I set line length in Visual Studio code?

In VSCode, go 'Code -> Preferences -> Settings' and search for "python formatting black args". A few notes about line lengths in Python: PEP8 recommends a line length of 79 characters (72 for docstrings) Black sets line lengths to 88 characters by default.


2 Answers

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.

like image 197
Sergey Vlasov Avatar answered Oct 16 '22 04:10

Sergey Vlasov


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.

like image 21
Julian Avatar answered Oct 16 '22 06:10

Julian