Create snippets in VSCode
March 1, 2022
- open snippets by selecting
Configure User Snippets
->markdown.json
"Frontmatter": {
"description": "Insert yml frontmatter",
"prefix": "frontmatter",
"body": [
"---",
"title: ${1:title}",
"date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE",
"tags: ${2:tags}",
"---"
]
},
"Date": {
"description": "Insert current date",
"prefix": "date",
"body": [
"## $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE}"
]
},
"Time": {
"description": "Insert current time",
"prefix": "time",
"body": [
"### $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND",
]
}