https://github.com/rafi993/vscode-snippet-generator
Generate Vscode snippets from markdown files
https://github.com/rafi993/vscode-snippet-generator
vscode vscode-snippet-generator vscode-snippets
Last synced: 3 months ago
JSON representation
Generate Vscode snippets from markdown files
- Host: GitHub
- URL: https://github.com/rafi993/vscode-snippet-generator
- Owner: Rafi993
- Created: 2020-01-11T07:37:38.000Z (over 5 years ago)
- Default Branch: master
- Last Pushed: 2020-01-11T11:58:54.000Z (over 5 years ago)
- Last Synced: 2025-02-08T07:41:17.467Z (5 months ago)
- Topics: vscode, vscode-snippet-generator, vscode-snippets
- Language: JavaScript
- Size: 3.91 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
## Vscode snippet generator
Generate vscode snippets from markdown files### Why ?
Vscode snippets are quite weird with their array syntax for the snippet body and it might be cool
if you could categories snippets into folders and files.### Creating new snippet
1. clonse the repo
```
$ git clone https://github.com/Rafi993/Vscode-snippet-generator.git
$ cd Vscode-snippet-generator
```
2. Just create a new folder in this project (folder name will be used as .json file name example **react**)
3. Create markdown file for snippet inside that folder
4. Follow the below format for writing snippet
```
-----------------------------------------
Name: Poorly named snippet
Prefix: pns
Description: This snippet does something
-----------------------------------------
This is the actual snippet body
```
5. Run
```
$ node ./generator.js
```
6. Copy your .json file (name will be same as the folder you created example **react.json**) and paste it into vscode### Todo
- [ ] Figure out was way to copy snippets into vscode automatically (should work cross platform)