https://github.com/bryanwilhite/vscode-snippets
a possibly silly experiment to sync @Code snippets in a repo
https://github.com/bryanwilhite/vscode-snippets
bash-script json powershell-script vscode
Last synced: 8 months ago
JSON representation
a possibly silly experiment to sync @Code snippets in a repo
- Host: GitHub
- URL: https://github.com/bryanwilhite/vscode-snippets
- Owner: BryanWilhite
- Created: 2017-06-06T07:10:15.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2024-06-12T01:22:10.000Z (over 1 year ago)
- Last Synced: 2024-12-31T03:15:15.937Z (9 months ago)
- Topics: bash-script, json, powershell-script, vscode
- Language: Shell
- Size: 22.5 KB
- Stars: 0
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# my @Code snippets
Since I am not particularly interested in [syncing _all_ of my Visual Studio Code settings](https://github.com/shanalikhan/code-settings-sync) across _all_ of my machines, I am compelled to get granular with the snippets.
On Windows, the default snippets folder is `%APPDATA%\Code\User\snippets`; on Ubuntu, `~/.config/Code/User/snippets/`. I tried plunking a repository directly in this folder only to find that Visual Studio Code did not work correctly from here (e.g. my custom settings were ignored and git data was not read/displayed). Currently the repository sits where it normally should and scripts are used to deploy snippets to their conventional folder.
## snippet format
I used [a snippet file from the Visual Studio Code team](https://github.com/Microsoft/vscode/blob/master/extensions/markdown/snippets/markdown.json) as a guide to the snippet format.
## invoking snippets
The `Ctrl+Space` invocation of snippets seems to display “no suggestions” when text is selected. The [Command Palette](https://code.visualstudio.com/docs/getstarted/userinterface#_command-palette) can be used to find the Insert Snippet command.
@[BryanWilhite](https://twitter.com/BryanWilhite)