vscode snippets extension based on TUI
$ # install node_modules
$ npm i
$ # install vsce
$ npm install -g vsce
$ # build
$ npm run build
$ # package vscode extension
$ npm run release
Markdown file symbol of a specify snippet, like this:
---
prefix: button
description: 按钮
scope: typescript,html
---
```html
<button${1: type="${2|text,tel|}"}>
$0
<button>```
prefix
defines how this snippet is selected from IntelliSense and tab completion. In this casebutton
.description
is the description used in the IntelliSense drop down.scope
Restrict template scope, if not specified, it means no restriction. In this casetypescript
andhtml
document.- markdown body is defines snippet code, muse be hava a code tag.
How to writing snippet code, pls refre to vscode-Creating your own snippets