Visual Studio相同的令牌突出显示 [英] Visual Studio identical token highlighting

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

问题描述

今年春天,我用Java为大学班的Java开发了Mancala游戏,然后使用 Eclipse IDE编写它. Eclipse中的一项出色(且相当简单)的视觉辅助工具之一是,如果您选择一个特定的标记(例如声明的变量),那么IDE将在屏幕上自动突出显示对该标记的所有其他引用.我首选的记事本替代品记事本++ 也可以做到这一点.

I coded a Mancala game in Java for a college class this past spring, and I used the Eclipse IDE to write it. One of the great (and fairly simple) visual aids in Eclipse is if you select a particular token, say a declared variable, then the IDE will automatically highlight all other references to that token on your screen. Notepad++, my preferred Notepad replacement, also does this.

Eclipse中另一个巧妙的类似功能是代码右侧的垂直错误栏"(不确定如何调用).它为文档中的所有语法错误显示了一个红色小框,为警告(如已声明变量但未使用"之类的警告)显示了黄色框,如果选择了一个单词,则在文档中每次出现该单词时,该框中都会出现一个框.

Another neat and similar feature in Eclipse was the vertical "error bar" to the right of your code (not sure what to call it). It display little red boxes for all of the syntax errors in your document, yellow boxes for warnings like "variable declared but not used", and if you select a word, boxes appear in the bar for each occurrence of the word in the document.

这些功能的屏幕截图:

A screenshot of these features in action:

经过一个半小时的搜索,我确定Visual Studio无法单独执行此操作,所以我的问题是:是否有人知道2005或2008的任何可提供上述功能之一的加载项? ?

After a half hour of searching, I've determined that Visual Studio cannot do this on its own, so my question is: does anyone know of any add-ins for 2005 or 2008 that can provide either one of the aforementioned features?

能够突出显示光标所在的当前行也很不错.我相信ReSharper的加载项可以做到这一点,但我宁愿使用免费的加载项,而不是购买一个.

Being able to highlight the current line your cursor is on would be nice too. I believe the add-in ReSharper can do this, but I'd prefer to use a free add-in rather than purchase one.

推荐答案

在SO上的另一个问题中( link ),有人提到了VS 2005/VS 2008加载项"RockScroll".它似乎提供了我在上面的问题中正在询问的错误栏"功能.

In a different question on SO (link), someone mentioned the VS 2005 / VS 2008 add-in "RockScroll". It seems to provide the "error bar" feature I was inquiring about in my question above.

RockScroll

RockScroll也会执行与我一直在寻找的标记相同的标记!太好了!

RockScroll also does the identical token highlighting that I was looking for! Great!

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

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