This is a Python Flask web application which helps create code snippets for a Visual Studio Code Extension or your local global user snippets.
The current JSON structure of a VS Code snippet is as follows:
"basic_property": {
"prefix": "b-prop",
"description": "Basic property snippet.",
"body": [
"_busy: {",
"\t\ttype: Boolean",
"}"
]
},
Enter your code in the text area below 'Enter Code' and click Submit. The generated snippet will be outputted to the 'Generated Snippet' text area.
The 'Advanced Configuration' allows input for Key, Description, Prefix, Line Endings and Tab Size. Input your advanced configuration along with your code and click Submit. The generated snippet will be outputted to the 'Generated Snippet' text area.
Please see the Visual Studio Documentation - Creating your own snippets
- Clone the repo.
- Navigate into the project.
- Run the following commands:
# Setup virtual environment (install virtualenv if you dont have it)
virtualenv env
source env/bin/activate
# Install all requirements
pip install -r requirements.txt
# Run the app with gunicorn
gunicorn run:app;
Please fork the branch, create a new feature branch, add your changes and push. Submit a pull request :)