问题描述
我在去年春天为大学课程用 Java 编写了一个 Mancala 游戏,我使用了 ),有人提到了 VS 2005/VS 2008 插件RockScroll".它似乎提供了我在上面的问题中询问的错误栏"功能.
RockScroll 也做了与我正在寻找的相同的标记突出显示!太棒了!
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.
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:
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?
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.
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.
EDIT: RockScroll also does the identical token highlighting that I was looking for! Great!
这篇关于Visual Studio 相同标记突出显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!