This VSCode extension makes your original postfix-snippets available.
Just by adding files (and activate them), you can create your own postfix.
The syntax is the same as the snippets for prefix.
- File path: a
*-postfix-maker.json
- File format: JSON
examples
{
"Length": {
"scope": "go",
"prefix": "len",
"body": ["len($1)"],
"description": "length"
},
"Print": {
"scope": "go",
"prefix": "print",
"body": ["print($1)"],
"description": "print"
}
}
- Open the command palette
- Search for "Activate postfix-maker" and execute it
This repository is under MIT License.