In Visual Studio when I select any literal it will highlight all the occurrences of the same literal. Is there a similar functionality in SQL Server Management Studio.
Say I have My_Temp_Table in my script. When selecting the literal "My_Temp_Table" I would like SSMS to highlight every instance of the "My_Temp_Table" string in my script.
No, there's no such feature on SSMS.
I tried to look for the same feature as well. CTRL + F is our only good options to look for the same name literals.
I've not yet found any such setting (and it's something I really miss whenever I switch from Visual Studio to SSMS), but I've stumbled across a few shortcuts on the Microsoft doc that expand on the answer by @willy-david-jr:
CTRL+F
F3
SHIFT+F3
CTRL+F3
CTRL+SHIFT+F3
Using these in conjunction with cursor position, you can at least more easily cycle through occurrences of the literal in the current editor window. They all highlight matches, and you don't even need to double-click the literal you want to search - simply having the caret in the string when you press the shortcut is sufficient.
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