Thank you for investing your time in contributing to our project! ⚡
If you spot a problem, search if an issue already exists. If a related issue doesn't exist, you can open a new issue using issue page.
- Fork the repository.
- Clone the forked repository
git clone https://github.com/YOUR-GH-USERNAME/twig-code-snippets.git
- Create
YOUR-GH-USERNAME.code-snippets.json
file insidetwig-code-snippets/snippets/contributes
- Add your snippets using vscode snippets format
- Add your file path to
src/Provider/Snippet/Loader.ts
insideloadContributeSnippets
method
public static loadContributeSnippets(): Snippet[] {
return [
...require('../../snippets/contributes/YOUR-GH-USERNAME.code-snippets.json'),
];
}
- Commit your changes to your forked repository
- Create new pull request