How to create Golang code snippets in VSCode
Here is how to create Golang code snippets in VSCode.
Steps
- Go to Preferences > User Snippets
- Select New Global Snippets File
- Name the file go.json
- Start with existing snippets like: go.json
Now validate
- Test one of the existing snippets
- Add a new snippet
- Test new snippet