1

I'm using Visual Studio 2022.

How can I reduce the space around the line numbers?

there is a photo

2
  • Do you mean that you want to hide the line numbers?
    – mkrieger1
    Oct 20, 2022 at 7:20
  • i want to reduce (may be even remove) spaces around them.
    – Renat
    Oct 20, 2022 at 8:36

2 Answers 2

2

Randomly found a solution. RMB on line numbers, there will be option "lightbulb margin". off to remove those indents.

1
  • Does not work for me in VS 2022 Community. Whole right-most area in editor (C#) does not have any RBM menu.
    – Riva
    Oct 28 at 16:28
2

Try to disable "Inheritance Margin". At Visual Studio, CTRL+Q and type "Inheritance Margin". At Options, unmark "Show inheritance margin" (at the bottom).

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge that you have read and understand our privacy policy and code of conduct.

Not the answer you're looking for? Browse other questions tagged or ask your own question.