Create & Config
- ctrl+shift+p
- type
snippet
- select for
global
or for currentworkspace
- create snippet
- example for yaml frontmater
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17
{ "front-matter": { "prefix": "fmt", "body": [ "---", "title: ${1:Title}", "author: ${2:rendrapcx}", "date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND +0700", "categories: [${3:Cheatsheet}]", "tags: [${4:bash}]", "pin: ${5|false,true|}", "---", "## $0" ], "description": "front-matter" } }
- create new
file.md
, typefmt
- press Ctrl + Space if popup doesnt show
- press tab or enter