简体   繁体   English

在Visual Studio中仅突出显示一个对象时,如何自动突出显示所有具有相同名称的对象?

[英]How do you automatically highlight all objects with same name in Javascript, when you highlight only one in Visual Studio?

In C#, when I highlight a variable name, it is also highlighted everywhere else on the same page where that variable is used in Visual Studio. 在C#中,当我突出显示变量名时,在Visual Studio中使用该变量的同一页上的其他任何地方,该变量也都突出显示。

When I do the same in JavaScript, this does not happen. 当我在JavaScript中执行相同操作时,这不会发生。

How do make this happen in JavaScript? 如何在JavaScript中做到这一点?

Use Highlight All Occurrences of selected word extension. 使用突出显示所选单词扩展的所有出现 On double-clicking a word, all occurrences of that word will be highlighted. 双击一个单词时,该单词的所有出现都将突出显示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何突出显示TreeViewItem? - How do you highlight TreeViewItem? 如何在富文本框中搜索字符串并突出显示所有找到的内容或突出显示每一行? - How do you search for a string in a rich text box and highlight all found or highlight each line? 如何在Visual Studio 2012中切换(或突出显示)同一解决方案的项目? - How do i switch between (or highlight) projects of the same solution in Visual Studio 2012? 如何使用 WPF 突出显示 combobox 中的项目? - How do you highlight an item in a combobox using WPF? 如何在Gtk Sharp中创建语法高亮文本编辑器? - How do you make a Syntax Highlight Text Editor in Gtk Sharp? 当鼠标悬停在项目上时,如何使Silverlight树视图不突出显示项目 - How to make a silverlight treeview not highlight an item when you mouse over it 如何让visual studio高亮关键词 - How to make visual studio highlight keywords 你如何在 Visual Studio 中对文本进行分类 - How do you classify the text in Visual Studio 无论如何,Visual Studio是否可以突出显示任何已声明的对象但未分配给对象的实例? - Is there anyway for Visual Studio to highlight any declared objects but are not assigned to an instance of an object? 突出显示Visual Studio中的成员和属性 - Highlight members and properties in Visual Studio
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM