Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Visual Studio/Notepad++: Highlight repeat occurrences of selection text?

I use Notepad++ for all my note-taking, copying and pasting, rapid prototyping, etc. It's freaking awesome. (Just wish it had some cloud storage instead! That's another topic though.)

Now, in Notepad++, when I have a script like that below, and double-click "foobar" to select and highlight it, everywhere else "foobar" appears, it's also highlighted:

function foobar() { var _foobar = "foobar"; return _foobar; }

Is there any way to get this in Visual Studio 2010? It's more a functional than stylistic feature, programmatically, I would imagine, so I doubt it's possible in VS. But it may be, perhaps?

like image 385
DotNetQuestionDate Avatar asked May 03 '11 23:05

DotNetQuestionDate


People also ask

How do I select next occurrence in Visual Studio?

In Visual Studio 2019, you can put your caret on the right place and then press SHIFT ALT and . (dot). This will select the next occurrence.

How do you select all occurrences of a word in Visual Studio?

Ctrl+D selects the word at the cursor, or the next occurrence of the current selection. Tip: You can also add more cursors with Ctrl+Shift+L, which will add a selection at each occurrence of the current selected text.

How do I select all occurrences in Visual Studio 2019?

In visual studio code there is a command editor. action. selectHighlights Ctrl + Shift + L . It will select all occurrences of current selection.


1 Answers

There are extensions for VS2010 - Highlight all occurrences of selected word to highlight the same words. And Productivity power tools to highlight all occurrences even if they are in the different words.foobar highlighting

like image 189
oxilumin Avatar answered Sep 20 '22 17:09

oxilumin