如何在Visual Studio 2015中禁用即时语法错误突出显示 [英] How do I disable instant syntax error highlighting in Visual Studio 2015

查看:315
本文介绍了如何在Visual Studio 2015中禁用即时语法错误突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

几个月前,我获得了Visual Studio 2015 Professional.自那以来,让我感到烦恼的是语法错误检查是如何在键入后立即触发的,而在2013年,错误检查仅在您离开当前代码行之后才发生.

I got Visual Studio 2015 Professional several months ago. One thing that has irked me ever since is how the syntax error checking fires off immediately after typing, whereas in 2013 the error checks only happened after you have moved away from your current line of code.

这很难解释我的意思.本质上,如果我输入一个引号,则该点以下的每一行代码都会立即切换为字符串,并且所有内容都将突出显示为错误.在创建变量的一半,Visual Studio突出显示它是未使用的变量.

This is kind of difficult to explain what I mean. Essentially, if I type a quotation mark every single bit of code below that point immediately switches to string and everything highlights as errors. Halfway through creating a variable, Visual Studio is highlighting it saying it is an unused variable.

是否可以关闭此功能?我一直在仔细研究我能找到的每个选项菜单,逐个禁用选项,但找不到解决方案.我也用谷歌搜索了广告恶作剧并寻找了解决方案,但是要么很难寻找,要么没人介意.我发现此功能非常烦人,因为在我完成一半代码之前,编辑器就对我大喊大叫.

Is there a way to turn this feature off? I have been poring over every options menu I can find, disabling options one by one and I cannot find a solution. I have also googled ad nauseum and searched for a solution but it is either difficult to search for or nobody else minds. I find this feature highly annoying because the editor is screaming at me before I have even progressed halfway through a line of code.

任何帮助将不胜感激

推荐答案

好的,也许此链接可以为您提供帮助.

https://blogs.msdn.microsoft.com/zainnab/2010/05/01/how-to-turn-off-automatic-intellisense/

Ok, maybe this link can help you.

https://blogs.msdn.microsoft.com/zainnab/2010/05/01/how-to-turn-off-automatic-intellisense/

您也可以更改该错误突出显示的颜色(欺骗您的头脑), 查找错误颜色,然后选择与编辑器的底色相同的颜色.

Also You can change colors for that error highlights (cheat your mind), look for the error color and choose one equal to the back color of the editor.

https://msdn.microsoft.com/en-us/library/hh923906.aspx

我希望这可以为您提供帮助

I hope this can help you

这篇关于如何在Visual Studio 2015中禁用即时语法错误突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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