I wrote an extension called Accent Occurrences to replace this one. It can be found at http://visualstudiogallery.msdn.microsoft.com/2f4627df-98ca-4ce1-9187-8eec7a67ba8c.
The Accent Occurrences extension adds an accent/highlight feature to Visual Studio that allows you to quickly see all the occurrences of a selected word or selected characters.
Features: - Customizable colors for background, border, font, and glyph [TOOLS → Options... → Environment → Fonts and Colors → Accent Occurrences (Box/Font/Glyph)] - Hold the Ctrl key while selecting text to make the search case sensitive
Want to install in Visual studio 2012 1. Download and rename .vsix to .zip 2. open 'extension.vsixmanifest' and find 'SupportedProducts' 3. Add this: <VisualStudio Version="11.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> </VisualStudio> <VisualStudio Version="12.0"> <Edition>Ultimate</Edition> <Edition>Premium</Edition> <Edition>Pro</Edition> </VisualStudio> 4. Save and rename .zip to .vsix 5. Double click to Install
+ Very easy to download/install. - I would prefer the matching to be case sensitive. - Would be AWSOME if it only matched matching instances - Eclipse does this for Java, but I'm not sure if this is possible in C/C++!? Would be AWSOME if it could be done! :) - Options would be nice, Colour, Case sensitive on/off, etc.
Either way, I recommend this plugin, as some matching is BETTER than none!
Another SQL guy trying it because of Jamie's blog. It doesn't handle T-SQL variables either. @ID for instance. If I just highlight the partial word ID, works as advertised. 1 vote for the square bracket fix too. Thanks for creating this Nicholas.
Very good. one complaint though, it doesn't work in .sql files (as are commonplace in SSDT) when the term you're highlighting is wrapped in square brackets (which happens a lot in .sql files) then the highlighting does not work. Hence, 4 stars instead of 5.
I wrote an extension called Accent Occurrences to replace this one. It can be found at http://visualstudiogallery.msdn.microsoft.com/2f4627df-98ca-4ce1-9187-8eec7a67ba8c.
The Accent Occurrences extension adds an accent/highlight feature to Visual Studio that allows you to quickly see all the occurrences of a selected word or selected characters.
Features:
- Customizable colors for background, border, font, and glyph [TOOLS → Options... → Environment → Fonts and Colors → Accent Occurrences (Box/Font/Glyph)]
- Hold the Ctrl key while selecting text to make the search case sensitive
I'm using the 2010 express edition.
Does this extension should work?
I'm getting the following message when trying to install "This extension is not installable on any currently installed products"
I found the way to use this extension in VS 2012.
.vsix file is .zip archive file, so you can rename it and unpack.
Then you can find extension.vsixmanifest file, where are defined supported versions of VS =) So I just modified supported versions of VS and packed that file back.
Perhaps my last post about conflicting extensions has something to do with that. Do you use some other extension to do ctrl+click jumps? Because it seems it is not a default behavior (at least for C++).
Thanks, You are right. Its not default feature of Visual Studio. This functionality is part of Productivity Power Tools extension. Thanks again for making clear to me. My next question, is there any solution for this conflict.
Since we use different plugins for the navigation, but have the similar problem, one might conclude, that there must be something wrong with the highlighting extension. It would be nice to hear from Nicholas.
Thanks, once again. I found one problem with ctrl+F way of highlighting words. This method not only highlights the variable name (word) but if that word is a part of some other variable, then word also highlighted in other variable. Thanks a lot.
Hi, it seems I have found some kind of conflict with another extension: "Go To Definition" (http://visualstudiogallery.msdn.microsoft.com/4b286b9c-4dd5-416b-b143-e31d36dc622b)
The extension makes ctrl+click on an identifier to behave like F12 (go to definition).
My usual use case is to double-click an identifier, look at it's highlighted occurrences in the current context (thanks to your extension) and then ctrl+click it to go to the definition. When I disable your highlighting extension I can navigate using ctrl+click, otherwise I get the highlighting on ctrl+click.
It is reproducible on a tiny snippet like this:
#include <iostream>
int main(int , char**)
{
int myint = 5;
std::cin >> myint;
myint += 1;
std::cout << myint;
}
I am using VS 2010 and the 1.31 version of your extension (2.4 version of that other extension).
Could you suggest any workaround?
Thank's Jay Thaler!
I followed in his footsteps, edited and shared the file, follow the link below:
http://www.4shared.com/file/KhapaAW3/SelectionHighlight-2012.html?
Thanks Jean, but I didn't want to sign up to download the file. Here's a link to the edited version from my DB.
https://www.dropbox.com/s/ahovunrtbp0tos4/SelectionHighlight.vsix
1. Download the plugin and save it to your desktop as SelectionHighlight.vsix
2. Rename the file to SelectionHighlight.zip
3. Edit the extension.vsixmanifest file in the zip to add a Visual Studio 11.0. It should look like this when you're done:
<SupportedProducts>
<VisualStudio Version="10.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
<VisualStudio Version="11.0">
<Edition>Ultimate</Edition>
<Edition>Premium</Edition>
<Edition>Pro</Edition>
</VisualStudio>
</SupportedProducts>
4. Save this new extension.vsixmanifest to the desktop (you can't save directly into the zip folder)
5. Copy the new extension.vsixmanifest back into the SelectionHighlight.zip
6. Rename SelectionHighlight.zip to SelectionHighlight.vsix
7. Doubleclick SelectionHighlight.vsix to install it into VS2011
Enjoy!
Like others here I use a black(dark) theme and the color choice of Lime Green does not work for me. Is there anyway to either allow us to change to color or maybe release the source so we can? I like the way this works compared to the built in IDE method but for me it iends up being LimeGreen abckground with white foreground which is not readable.
In addition to allowing the change of the background color, please make the currently selected item distinct from the others by using a different color or shade.
it's a super hackey way to do it, but as stated below you can edit the hex of the DLL (%LocalAppData%\Microsoft\VisualStudio\10.0\Extensions\Microsoft\Highlight all occurrences of selected word\1.31\SelectionHighlight.dll), hopefully an update is released that works better than that, but this gets the job done
To change the default backgroud color, open "SelectionHighlight.dll" in a hex editor and replace the string "get_GreenYellow" with a new color name: http://en.wikipedia.org/wiki/Web_colors#X11_color_names, e.g. "get_Pink". Patch unused bytes with 0x00.