Skip to content

BryanWilhite/vscode-snippets

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

41 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

my @Code snippets

Since I am not particularly interested in syncing all of my Visual Studio Code settings 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 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 can be used to find the Insert Snippet command.

@BryanWilhite

About

a possibly silly experiment to sync @code snippets in a repo

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published