Quick Hit – Copy-VSCodeUserSnippets

It should be no surprise that I am a VS Code user. VS Code is an amazing editor and it’s free. One of the things I love about it is the ability to make something called a user snippet.

According to the VS Code website, a user snippet is a template that make it easier to enter repeating code patterns, such as loops or conditional-statements. I use user snippets for PowerShell related items, but also text files, Python and Go snippets as well.

So since I like to send everything “code” related to a Git repository, I figured I would write a PowerShell function to copy my user snippets to another directory that I have in a Git repo.

So in all it’s glory. Here it is.

1 thought on “Quick Hit – Copy-VSCodeUserSnippets

  1. I have had a hard time then taking that file and applying it to the VSCode session, not sure why. Allowing for Stable and Insiders was fun!

Leave a Reply to J Kavanagh Cancel reply

Your email address will not be published.