With Visual Studio Code (VScode) you can create snippets.
Just create a file jekyll.code-snippets inside the .vscode folder. The format is just json.
{
"Insert a Post Header for Jekyll in markdown":{
"prefix": "kw-jekyll-postheader",
"scope": "markdown",
"body": [
"---",
"layout: post",
"title: \"${TM_FILENAME_BASE/\\d{4}-\\d{2}-\\d{2}-//gi}\"",
"date: $CURRENT_YEAR-$CURRENT_MONTH-$CURRENT_DATE $CURRENT_HOUR:$CURRENT_MINUTE:$CURRENT_SECOND +0200",
"categories: kargware",
"tags: [ \"jekyll\" ]",
"post_key6: $RANDOM_HEX",
"---"
],
"description": "Insert a post header for jekyll in markdown"
}
}
When you type kw-jekyll-postheader (defined in prefix) on a open markdown-file and start the tab-completion you will see a front matter code-snippet, and random value is placed in post_key6.