在JavaScript中关闭Visual Studio引用突出显示 [英] Turn off Visual Studio reference highlighting in JavaScript

查看:105
本文介绍了在JavaScript中关闭Visual Studio引用突出显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

有没有办法关闭JavaScript的Visual Studio令牌引用高亮显示(即使是通过黑客攻击?)



我知道如何为C#关闭它遵循本指南( http:// msdn .microsoft.com / zh-cn / library / vstudio / ee349251(v = vs.100).aspx ),看起来JavaScript选项卡中没有类似的选项,似乎是一个很大的疏忽。



这很烦人,而且我喜欢太多的闪烁,特别是在尝试复制行然后重命名时,特别是在JSON表示法中使用大量属性名称时或者当你'将箭头键移动到多行显示的共享对象上。



例如。



解决方案

我不认为这适用于所有人 语言。 JS就是其中之一。作为一种解决方法,如果您不介意禁用其他语言,为什么不更改Highlighing颜色以匹配编辑器的背景颜色。不幸的是,这不适用于特定语言,但对于编辑器来说很常见。
通过执行此操作,它将与关闭突出显示引用的效果相同。以下是您在问题中提到的MSDN相同帖子。


更改参考突出显示颜色



在工具菜单上,单击选项。



在选项对话框中,展开环境,然后单击字体
和颜色。 / p>

在显示设置框中,单击文本编辑器。



在显示项目列表中,单击突出显示的参考。



在项目背景框中,单击相应的颜色。



Is there any way to turn off Visual Studio token reference highlighting for JavaScript (even through a hack?)

I am aware of how to turn it off for C# following this guide (http://msdn.microsoft.com/en-us/library/vstudio/ee349251(v=vs.100).aspx), looks like there is no option available similar in the JavaScript tab, seems like a big oversight.

It's pretty annoying, and too much flickering occurs for my liking, especially when trying to duplicate lines then renaming, particularly working with a lot of attribute names in JSON notation or when you're moving your arrow keys across a shared object which is shown on many lines.

Eg.

解决方案

I don't think this is available for all the languages. JS is one of them. As a workaround, and if you don't mind disabling for the other languages as well, why not change the Highlighing color to match your Editor's background color. Unfortunately this not available for a specific language, but common for the editor. By doing this, it would be the same effect as if you were to turn off the Highlight references. Below is from the same MSDN post you mentioned in your question.

To change the reference highlighting color

On the Tools menu, click Options.

In the Options dialog box, expand Environment, and then click Fonts and Colors.

In the Show settings for box, click Text Editor.

In the Display items list, click Highlighted Reference.

In the Item background box, click the appropriate color.

这篇关于在JavaScript中关闭Visual Studio引用突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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