Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Welcome To Ask or Share your Answers For Others

Categories

0 votes
742 views
in Technique[技术] by (71.8m points)

text editor - Reduce left-margin in Visual Studio 2015

Please can anyone tell me how I can get rid of the margin at the left edge of the editor in VS2015?

I don't mind the "indicator margin", but there is now a large space between that and the start of my code. In Tools-Options - Text-Editor - General - Display, I have the "Selection margin" turned off. Turning it on makes the gap even wider.

I believe that the additional margin is used by the new "code assistance" light-bulb, which I would gladly turn off, but I cannot find an option for it.

I have the Productivity Power Tools extension installed, but I don't think that this is responsible.

I have found that there is an answer here: How do you disable the light bulb in Visual Studio 2015? but this involved modifying project files, which will then impact the whole team, who don't want me to turn it off. It interested me to find out whether turning off all code analysis would fix the widened margin though, so I tried disabling all rules. Sadly this made no difference to the left-hand margin!

See Question&Answers more detail:os

与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome To Ask or Share your Answers For Others

1 Answer

0 votes
by (71.8m points)

I've created an extension for this, it hides both the outlining and suggestion margins.


与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…
Welcome to OStack Knowledge Sharing Community for programmer and developer-Open, Learning and Share
Click Here to Ask a Question

...