patternsqlMinor
Change code editor variable highlighting colour
Viewed 0 times
highlightingeditorcolourcodevariablechange
Problem
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
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.Solution
Variable colors share settings with table, object and other names. So you can change the text color using
Just note that it will also affect table names, column names etc.
For the highlighted color of identifiers and variables, use
And no, these are not my current settings, and I only kept them that way long enough to grab a screen shot...
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...
Context
StackExchange Database Administrators Q#73911, answer score: 7
Revisions (0)
No revisions yet.