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?
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.
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.
In visual studio code there is a command editor. action. selectHighlights Ctrl + Shift + L . It will select all occurrences of current selection.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With