Skip to content

Latest commit

 

History

History
31 lines (22 loc) · 1.08 KB

contributing.md

File metadata and controls

31 lines (22 loc) · 1.08 KB

Welcome to twig code snippets extention contributing guide

Thank you for investing your time in contributing to our project! ⚡

Getting started

Issues

Create a new issue

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.

Add code snippets

  1. Fork the repository.
  2. Clone the forked repository

git clone https://github.com/YOUR-GH-USERNAME/twig-code-snippets.git

  1. Create YOUR-GH-USERNAME.code-snippets.json file inside twig-code-snippets/snippets/contributes
  2. Add your snippets using vscode snippets format
  3. Add your file path to src/Provider/Snippet/Loader.ts inside loadContributeSnippets method
    public static loadContributeSnippets(): Snippet[] {
        return [
            ...require('../../snippets/contributes/YOUR-GH-USERNAME.code-snippets.json'),
        ];
    }
  1. Commit your changes to your forked repository
  2. Create new pull request