Within the SSMS Code Editor (for SQL Server 2012) I have this code written within the editor, that has a Dark theme applied. When you click on a variable, SSMS highlights all the other occurrences of that variable in scope. Notice that the variable highlighting colour is quite dark against the background.
Within the Tools > Options > Fonts and Colors menu, can anyone tell me which is the correct Display items
choice to edit this colour? I've been through all of the ones that I can see that roughly match the same colour, but none actually effect the code.
Best Answer
Variable colors share settings with table, object and other names. So you can change the text color using
Identifier
:Just note that it will also affect table names, column names etc.
For the highlighted color of identifiers and variables, use
Selected Text
. The highlights will use a slightly muted version of that color.And no, these are not my current settings, and I only kept them that way long enough to grab a screen shot...