Search code examples
visual-studio-codecode-snippets

Change the snippets location in Visual Studio Code


I am using visual studio code, and need to place the user snippets in my project repository. How can I change the location of the snippets file to a custom one? I am working on windows 10.


Solution

  • Update: project level snippets are now a built-in feature as of the September 2018 release, so this no longer requires a third-party extension.


    There is currently an open feature request for this (#8102), but you can already get this functionality by using the Project Snippets extension - it lets you place snippets in:

    .vscode/snippets/<language>.json