Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Remove extra space by line numbers in Visual Studio 2015

I have no idea if this is the right community for this question, so please feel free to move it if it is not.

In Visual Studio 2015, there appear to be six character spaces for line numbers, even if your file only has 30 lines - so this allows for fewer characters of actual code on the screen. Is there a way to remove the extra space?

like image 778
zimdanen Avatar asked Sep 16 '15 16:09

zimdanen


People also ask

How do I get lines of code in Visual Studio?

Change the search option to either "Current Project" or "Entire Solution" depending on your needs. Now select "Find All". At the bottom of the Find Results window, you will see "Matching Lines" which is the lines of code count.


1 Answers

There are following margins left of code: breakpoints/bookmarks (17 px), line numbers (35 px), quick actions (18 px), file changes (10 px) and outlining (9 px).

enter image description here

I don't see any deliberately wasted space and I don't see any public options to change width of existing elements.

like image 165
Sergey Vlasov Avatar answered Sep 20 '22 17:09

Sergey Vlasov