microsoft / vscode

Visual Studio Code
https://code.visualstudio.com
MIT License
163.94k stars 29.18k forks source link

Snippets as separate files #39989

Closed Amparose closed 6 years ago

Amparose commented 6 years ago

Requesting better snippet storage ystem:

The current implementation of snippets' data is narrow and awkward. By clustering all snippets by language into JSON files it makes it difficult to share, version, and create snippets per projects. SublimeText's implementation of file-per-snippet in a user-defined folder structure is much more flexible.

Perhaps a middle ground would be allowing multiple namespaced JSON files to be concatenated and loaded. E.g. less.json, less_SomeName.json, less_ProjectName.json, etc

Version of VS Code 1.18.1

jrieken commented 6 years ago

closing this as dupe of #22661 (snippets knowing their scope/language) and #13182 (global snippets)