Do you highlight strings in your code editor?

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

123
<introEmbed body={<> 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

Adam Cogan
Ryan Tee
Related rules

Need help?

SSW Consulting has over 30 years of experience developing awesome software solutions.

We open source.Loving SSW Rules? Star us on GitHub. Star