Apr 2019

Overriding default VSCode snippets


Extempore's VSCode plugin is really useful, but sometimes you may not want to use all the snippets that come with it. Managing code snippets effectively can improve your development workflow, especially when working with domain-specific languages or frameworks.

Hiding Snippets

Here's a handy tip on how to hide snippets selectively.

You can hide specific snippets from showing in IntelliSense (the completion list) by selecting the Hide from IntelliSense button to the right of snippet items in the Insert Snippet command dropdown.

vscode-image

This feature is particularly useful when: - You have multiple extensions providing similar snippets - You prefer to write code manually for certain constructs - You want to reduce clutter in the IntelliSense suggestions - You're creating a custom workflow and need to filter out default snippets

Additional Options

Beyond hiding snippets, VSCode also allows you to: - Create your own custom snippets to override defaults - Use keyboard shortcuts to toggle IntelliSense behavior - Configure snippet suggestions order in your settings

For more information, see the official documentation: https://code.visualstudio.com/docs/editor/userdefinedsnippets#_can-i-remove-snippets-from-intellisense

Cite this blog post:


Michele Pasin. Overriding default VSCode snippets. Blog post on www.michelepasin.org. Published on April 5, 2019.

Comments via Github:


See also: