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 releaseMarkdown file symbol of a specify snippet, like this:
---
prefix: button
description: 按钮
scope: typescript,html
---
```html
<button${1: type="${2|text,tel|}"}>
$0
<button>```prefixdefines how this snippet is selected from IntelliSense and tab completion. In this casebutton.descriptionis the description used in the IntelliSense drop down.scopeRestrict template scope, if not specified, it means no restriction. In this casetypescriptandhtmldocument.- 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