Make Vscode Annoy Me When I Make a Typo
tech development microblog vscode
Not sure why, but I’ve had 2 typos that keep plauging me.
ngnixshould benginxchocolateyshould bechocolatey
With Go, I get compile errors with typos, so no problem. With PowerShell or Bash, this can be really annoying and waste time in debugging.
You can configure many autocorrect tools on a system level, but I wanted a quick solution for making it super obvious in my code as I typed without any new spelling extensions.
Install Highlight: fabiospampinato.vscode-highlight 1
Configure a rule like this:
"highlight.regexes": {
"(ngnix)": [
{
"overviewRulerColor": "#ff0000",
"backgroundColor": "#ff0000",
"color": "#1f1f1f",
"fontWeight": "bold"
},
{
"backgroundColor": "#d90000",
"color": "#1f1f1f"
}
],
}