How can I define VS Code snippets in a .code-workspace file?

51 Views Asked by At

If I add a section "code-snippets" to "settings" in the .code-workspace file it is all greyed out "Unknown configuration". The documentation is not very helpful here.

enter image description here

1

There are 1 best solutions below

0
starball On

As far as I am aware, VS Code does not support specifying snippets in a .code-workspace file. Historically related is Feature Request - Project-level extensions and snippets #8102, but it seems they just added support for .vscode/*.code-snippets, but not a member in the .code-workspace schema. You could raise a feature request asking for them to add that.