For... some-odd years now, I have repeatedly mispelled the word "local". The most common mistake for me is "lcoal".
Is there a trick, a tip, a plugin for VSCode that would see a specific word I give it (lcoal) and immediately replace with "local"? I use this as a scope (local.x) constantly in my language of choice.
I don't want a "bad underline", or syntax throw up, or even an alert. I just want VSCode to replace it immediately. I don't want to have to search and replace. And this language doesn't have any kind of pre-processor before running.
Is there anything like that? My Googling and searching extensions didn't turn up anything useful.
(I think I was able to do this in Sublime before I ever switched to VSCode.) And yes, yes, yes, I should just learn to spell it correctly. I get that. And 99% of the time I do, but that 1% is a killer for me.
CodePudding user response:
Have you tried the Auto correct Extension.
I tried it out and it works for your usecase. The only pain is that you have to setup the words manually in your settings.json
file if they are not in the useLargeList
that is deactivated per default. (File -> Preferences -> Settings)
"auto-correct.dictionary": [
{
"languages": [
"*"
],
"words": {
"lcoal": "local"
},
"useLargeList": true
},
]
CodePudding user response:
Navigate to search icon then press cont shift h
then enter search term and replace term.. now you can easily find all occurrence of your word and replace them easily