Same Visual Studio Token Allocation

I encoded the Mancala game in Java for a college class last spring, and I used the Eclipse IDE to write it. One of the great (and fairly simple) visual aids in Eclipse is that if you select a specific token, say a declared variable, then the IDE will automatically highlight all the other links to that token on your screen. Notepad ++ , my preferred replacement for Notepad, 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 displays small red squares for all syntax errors in your document, yellow fields for warnings such as “variable declared but not used”, and if you select a word, fields for each occurrence of a word in the document will appear in the panel.

A snapshot of these features in action: screenshot

After half an hour of searching, I decided that Visual Studio could not do it on my own, so my question is: does anyone know any add-ons for 2005 or 2008 that can provide either one of the above functions

The ability to select the current line on which the cursor is on will also be pleasant. I believe the ReSharper add-in can do this, but I would rather use a free add-in rather than buying it.

+65
visual-studio-2008 visual-studio visual-studio-2005
Aug 28 '08 at 14:56
source share
11 answers

In another question about SO ( link ), someone mentioned the VS 2005 / VS 2008 add-on "RockScroll". It seems to provide the “error” function that I asked in my question above.

Rockscroll

EDIT: RockScroll also does the same token allocation I was looking for! Fine!

+11
Sep 03 '08 at 16:17
source share

There is an alternative to RockScroll, called MetalScroll , which is essentially the same with several enhancements and improvements.

There is also a small and simple WordLight plugin that only provides identical tokens.

Both are open source and support code folding, which is nice.

Imho, the panel next to the scrollbar in Eclipse is a much more elegant solution than replacing the RockScroll / MetalScroll scrollbar. Unfortunately, I could not find VS plugins that do this in the Eclipse way, so I just stick with WordLight.

+32
Jul 12 '10 at 18:41
source share

Check the following add-ons Performance Power Tools - Displays an error in the scroll bar and

Highlight selected word

+11
Feb 24 '11 at 8:35
source share

An old question, but ... Visual Studio 2010 finally introduced this feature.

+9
Apr 20 '10 at 15:53
source share

The highlight function is conveniently implemented in VisualAssist . In my opinion, they should both be.

1) Highlight the identifier in the editing frame: Options → Advanced → Refactoring → Automatically highlight symbol links under the cursor

2) Highlight the search result - in all windows. Powered by RegExps! Options → Advanced → Display → Highlight search results

+8
Jul 30 '09 at 13:09
source share

Auto-highlighting is implemented in Visual Assist as a "Find Links" refactoring command. It selects all occurrences of a given variable or method, but not automatic (tied to a keyboard shortcut on my computer).

Here is an example:

alt text

+3
Sep 03 '08 at 16:39
source share

About RockScroll: it does not highlight identifiers. It selects only one line in the source code! If there is a similar identifier: ex. _test and test, and the test is highlighted, it will highlight the string "test" in the variable _test too! And it will also highlight the same line in the "sometesting ()" method. So this is not quite like an eclipse and does not work for me.

+3
Jun 25 '09 at 13:41
source share

DevExpress CodeRush does this when you press TAB, when the cursor is in the identifier, you can insert all selected instances. There is also a DXCore plugin (the foundation on which CodeRush / Refactor Pro is built) that selects the current line.

+2
Aug 28 '08 at 15:04
source share

Error string functionality is provided in JetBrains ReSharper. I'm not sure if it highlights links to the currently selected id.

+1
Aug 28 '08 at 16:44
source share

Only for the selected function of selecting words (s) is StickyHighlight .

StickyHighlight supports Visual Studio 2010 and 2012.

+1
Sep 21
source share

It looks like the “Performance Tools" have moved on , and highlighting the highlighted word no longer works (at least not on my machine with a fresh install)

To bring this functionality back, I had to install the Match Margin plugin. Just installing PPT did not work.

0
Oct 30 '17 at 12:17
source share



All Articles