Prevent Visual Studio Code to use auto-complete on PlainText

Viewed 1384

Is there a way to stop Visual Studio Code to autocomplete words, or to stop inserting snippets when working on a "PlainText" document?

I love VSC, but I use a lot of plain-text to take notes and so on. I don't want VSC to turn a 'sentence' like "I was" into:

I <i class="fas fa-car-wash    "></i>

just because I pressed [Enter] after the word 'was'.

I can kill the autocomplete in total, but I like it in code files. I just don't want it when the type is set to plaintext.

3 Answers

Try setting "editor.wordBasedSuggestions": false.

You can also play around with what VSCode can suggest in Settings:

Ctrl + Shift + P => Preferences: Open Settings (UI) => Text Editor => Suggestions

@cryothic: had the very same problem as you asked for. I was rather successfull with this somewhat simpler addition to settings.json; no more annoying test suggestions since.

"[plaintext]": {
    "editor.quickSuggestions": false,
Related