Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to decrease the margin size of the number of line

I've a project on Visual Studio 2019 (with Resharper Ultimate enable) and has been a terrible experience because I can't read the entire line of the code (I've myopia so my font size is 15~18)

But I see that this margin occupies so much space. enter image description here

Is there any way to change this? I want to keep the number of lines.

like image 461
Daniela Morais Avatar asked Oct 30 '25 02:10

Daniela Morais


2 Answers

For vs 2022 you must set this:

Disable the "Inheritance Margin": Options -> Text Editor -> C# -> Advanced -> Inheritance Margin -> Uncheck "Show inheritance margin"

enter image description here

source

like image 155
sergioocode Avatar answered Nov 01 '25 17:11

sergioocode


Just go to the menu Tools and select the Options submenu.
Then go to the Text Editor node, expand it and go to All Languages node.
Here you will find the Line Numbers option.
Just remove the check to hide the line numbers

enter image description here

like image 43
Steve Avatar answered Nov 01 '25 15:11

Steve



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!