减少 Visual Studio 2015 中的左边距 [英] Reduce left-margin in Visual Studio 2015

查看:34
本文介绍了减少 Visual Studio 2015 中的左边距的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

谁能告诉我如何在 VS2015 中去掉编辑器左边缘的边距?

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.

我安装了 Productivity Power Tools 扩展程序,但我认为这不是问题.

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

我发现这里有一个答案:如何在 Visual Studio 2015 中禁用灯泡?但这涉及修改项目文件,这将影响整个团队,他们不希望我将其关闭.我很想知道关闭所有代码分析是否会修复扩大的边距,所以我尝试禁用所有规则.遗憾的是,这对左边距没有影响!

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!

推荐答案

我创建了一个 扩展为此,它隐藏了大纲和建议边距.

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

这篇关于减少 Visual Studio 2015 中的左边距的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆