Do you highlight strings in your code editor?

Updated by Brady Stroud [SSW] 1 year ago. See history

123

It is a good practice to highlight string variables or const in source code editor of Visual Studio to make them clear. Strings can be easily found especially you have long source code.

❌ Figure: ![Default string appearance](/uploads/rules/do-you-highlight-strings-in-your-code-editor/HighlightString_bad_small.gif)

✅ Figure: ![Highlighted string appearance](/uploads/rules/do-you-highlight-strings-in-your-code-editor/HighlightString_good_small.jpg)

✅ Figure: ![Tools | Options form of Visual Studio](/uploads/rules/do-you-highlight-strings-in-your-code-editor/HighlightString_VSOption_small.gif)

acknowledgements
related rules