Skip to content
vscode snippets

vscode snippets

you can create snippets in vscode and insert them into your code.

with cmd+shift+p you can easily create and insert snippets. If everything goes according to plan, I’ll put some snippets here…

there’s a handy web app to help you generate snippets: snippets generator

YAML front matter

this will just create a yaml front matter header with a few fields: title, tags and date created.

{
	"YAML front matter": {
		"prefix": "",
		"body": [
			"---",
			"title: ",
			"tags:",
			"  - ",
			"date created: ${CURRENT_YEAR}-${CURRENT_MONTH}-${CURRENT_DATE}",
			"---"
		],
		"description": "YAML front matter"
	}
}