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.

Is there any way to change this? I want to keep the number of lines.
For vs 2022 you must set this:
Disable the "Inheritance Margin": Options -> Text Editor -> C# -> Advanced -> Inheritance Margin -> Uncheck "Show inheritance margin"

source
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

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