Bad Code Highlighter VS Code ExtensionThis is a Visual Studio Code extension based on Microsoft's decorator-sample. It lets you highlight text in your editor using regular expressions, allowing you (for example) to flag simple bits of bad code. Example:When creating Jest tests, I would often type "if(" instead of "it(" out of habit. And when working with JSX, I would sometimes type "class=" instead of "className=". To turn these bad bits of code red, you would configure the extension with the filename and text to match, the color for the highlight, and the tooltip text to show when you mouse over the highlight.
Installation:In VS Code, hit Ctrl-P and type Go to Settings to configure the text to highlight. There are a couple defaults provided as examples. |