7

I would like to enable (if it exists) an option in Visual Studio 2010 that would highlight the same identical words to the selected ones. There is a feature like this already implemented e.g. in Notepad++ it looks more or less like this :

enter image description here

Does anyone know if it exists in Visual Studio 2010 ?

3 Answers 3

8

There is an extension on Microsofts Visual Studio Gallery named "Highlight all occurrences of selected word" which promises what you're looking for.

1
  • Visual Assist X, although commercial, provides the same as one of its functions. Feb 6, 2012 at 17:36
2

Umm, this is a built in feature.

Link

http://msdn.microsoft.com/en-us/library/ee349251.aspx

1
  • Yeah this works but only for Basic and C#. ( I didn't mention that but I want it to work with C++ and the solution mentioned by Oliver works for that)
    – Patryk
    Feb 7, 2012 at 8:20
1

People Looking for visual studio 2015:

https://marketplace.visualstudio.com/items?itemName=PaulCzywczynski.Highlightalloccurrencesofselectedword

It's a modified version of Nicholas Sha's plugin by Paul Czywczynski. The syntax highlighting looks just like notepad++, but better.

It puts little markers on the line numbers of the occurances.

Screen Shot Here

1

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .