There's a lot of them around, but the best and simplest one I've found is wayou.vscode-todo-highlight. However, it seem that the maintenance of this extension have been abandoned.
The settings is simple and clear to use, but unfortunately the example out-of-the-box settings (and documentation) sucks, so to make life simpler, just copy/paste this into your (User) setting JSON file.
On Win-10, the user settings is located here:
C:\Users\<username>\AppData\Roaming\Code\User\settings.json
.
//------------------------------------------
// wayou.vscode-todo-highlight
//------------------------------------------
// For colors, see:
// https://stackoverflow.com/questions/20541456/list-of-all-colors-available-for-powershell
"todohighlight.isEnable": true,
"todohighlight.isCaseSensitive": true,
"todohighlight.keywords": [
"ToDo",
"DEBUG:",
"REVIEW:",
{
"text": "NOTE:", //
"color": "yellow", //
"backgroundColor": "#006400", // DarkGreen #FF006400 (argb)
"overviewRulerColor": "grey", //
"fontWeight": "bold", //
},
{
"text": "HACK:", //
"color": "#000", //
"isWholeLine": false, //
"fontWeight": "bold", //
//"margin": "5px", // [padding, border, margin] Not working!
},
{
"text": "TODO:", //
"color": "red", //
//"border": "1px solid red", //
"borderRadius": "1px", //NOTE: using borderRadius along with `border` or you will see nothing change
"backgroundColor": "rgba(4,4,4,.2)", // "rgba(0,0,0,.2)"
"isCaseSensitive": false, //
// Add other styling properties here.
}
],
//"todohighlight.keywordsPattern": "TODO:|FIXME:|\\(([^)]+)\\)", //highlight `TODO:`,`FIXME:` or content between parentheses
"todohighlight.defaultStyle": {
"color": "red", //
"backgroundColor": "#ffab00", //
"overviewRulerColor": "#ffab00", //
"cursor": "pointer", //
"border": "1px solid #666", //
"borderRadius": "2px", //
"isWholeLine": false, //
// Add other default styling properties here.
},
"todohighlight.include": [
"**/*.js",
"**/*.jsx",
"**/*.ts",
"**/*.tsx",
"**/*.html",
"**/*.php",
"**/*.css",
"**/*.scss",
"**/*.ps1"
],
"todohighlight.exclude": [
"**/node_modules/**",
"**/bower_components/**",
"**/dist/**",
"**/build/**",
"**/.vscode/**",
"**/.github/**",
"**/_output/**",
"**/*.min.*",
"**/*.map",
"**/.next/**"
],
"todohighlight.maxFilesForSearch": 5120,
"todohighlight.toggleURI": false
//------------------------------------------
NOTE: I didn't enclose the outer {}
s.