Reputation: 1861
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?
Upvotes: 6
Views: 6445
Reputation: 13620
I already add this answer to another question but since it is relevant, I will add here too.
You don't need any workarounds, there is a built-in way to disable a built-in snippet.
Currently you can not disable user-defined snippets, snippets you have added yourself. You have to remove or comment out them in your related snippets file.
Upvotes: 2
Reputation: 61
To remove all suggestion use "editor.snippetSuggestions": "none"
in the settings.json
Upvotes: 6
Reputation: 1861
Alright, found a way to do this.
Upvotes: 3
Reputation: 180885
Coming in v1.52 is the ability to disable snippets, see https://github.com/microsoft/vscode/issues/10565#issuecomment-721832613. But you have to do it on a per-snippet basis which could be helpful if you just wanted to disable seeing certain snippets. The snippets won't show in the intellisense suggestions but can still be accessed through the Command Palette/Insert Snippet
command.
Which is also where you go to remove them from appearing in the suggestions.
Upvotes: 12
Reputation: 5333
There is no direct way to do this in VSCode unless the extension provides you an option to disable the snippets from it. However, I use an extension to manage all the snippet sets that are active in a workspace.
Control Snippets is the extension.
Upvotes: 5