- Published on
VS code Snippets Config
- Authors

- Name
- Shelton Ma
VS Code Snippets Config
Configure Snippets
Ctrl + Shift + p, input >snippetsSelect User Snippets:
Snippets:Configure SnippetsSelect
New Global Snippets file, Create new file:mdx-snippets.json.code-snippetsmarkdown demo, snippet generator
"blog_frontmatter": { "prefix": "blog frontmatter", "body": [ "---", "title: ", "date: $CURRENT_YEAR-$CURRENT_MONTH-${CURRENT_DATE} $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND", "tags: []", "draft: false", "summary: ", "images: []", "authors: ['default']", "---", "", "" ], "description": "blog_frontmatter" },
Use
when you type blog frontmatter in an MDX file, VS Code will auto-insert the code block template