Join GitHub today
GitHub is home to over 28 million developers working together to host and review code, manage projects, and build software together.Sign up
Initial version of snippet file #4803
VS Code supports project-level snippets (just found out).
I will expand this out as time goes. Initially just includes a few function templates but will work on adding the test templates referenced in sqlcollaborative/dbatools-templates#20
Type of Change
Snippets can be a replacement for having to upkeep the template repository for contributors that use VS Code.
The project level snippet file is detected by VS Code once it loads the project/workspace folder. A user would follow the steps below to utilize them as they need/want based on what they are contributing. The example below would be for adding a new command/function.
These can be adjusted to be full command templates like the two listed. I can also include code snippets for whatever pattern we would like to setup for this project (e.g. foreach-dbs).