visual-studio-codevscode-snippets

How to remove IntelliSense suggested snippets introduced by extension (or built-in)


Normally, I want to see suggested IntelliSense snippets when typing and this works nicely. However, some extensions I installed introduce a lot of snippets I will never use and they bloat the IntelliSense suggested list.

I found no way so far to remove/disable snippets coming from an extension. Is there a way to do this?


Solution

  • Alright, found a way to do this.

    1. Go to the folder where your extensions are installed for vscode.
    2. Find the folder for extension that adds the snippets (if you are not sure which one does it, peek the snippet in IntelliSense suggest list - the description will have the extension name in parenthesis at the end, some snippets are from built-in extensions).
    3. Rename snippets.json to _snippets.json, or just modify the file to contain only snippets you are interested in.
    4. Disable extension, reload vs code, enable the extension.