Skip to content

Instantly share code, notes, and snippets.

@archeranimesh
Created September 26, 2022 14:50
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save archeranimesh/33179b3c182c04a15cf17330d6627f7c to your computer and use it in GitHub Desktop.
Save archeranimesh/33179b3c182c04a15cf17330d6627f7c to your computer and use it in GitHub Desktop.
The vscode snippet code for markdown. This is similar snippet as sublime text 2 markdown editing.
{
// Place your snippets for markdown here. Each snippet is defined under a snippet name and has a prefix, body and
// description. The prefix is what is used to trigger the snippet and the body will be expanded and inserted. Possible variables are:
// $1, $2 for tab stops, $0 for the final cursor position, and ${1:label}, ${2:another} for placeholders. Placeholders with the
// same ids are connected.
// Example:
// "Print to console": {
// "prefix": "log",
// "body": [
// "console.log('$1');",
// "$2"
// ],
// "description": "Log output to console"
// }
"Markdown Hyperlink": {
"prefix": "mdl",
"body": [
"[${1:${SELECTION:display text}}](${2:link})"
],
"description": "Markdown Hyperlink"
},
"Markdown Codeblock": {
"prefix": "mdc",
"body": [
"```${1:language}",
"${2:code}",
"```"
],
"description": "Markdown Codeblock"
},
"Markdown Heading 1": {
"prefix": "mdh1",
"body": [
"# ${1:heading 1} #"
],
"description": "Markdown Heading 1"
},
"Markdown Heading 2": {
"prefix": "mdh2",
"body": [
"## ${1:heading 1} ##"
],
"description": "Markdown Heading 2"
},
"Markdown Heading 3": {
"prefix": "mdh3",
"body": [
"### ${1:heading 1} ###"
],
"description": "Markdown Heading 3"
},
"Markdown Heading 4": {
"prefix": "mdh4",
"body": [
"#### ${1:heading 1} ####"
],
"description": "Markdown Heading 4"
},
"Markdown Heading 5": {
"prefix": "mdh5",
"body": [
"##### ${1:heading 1} #####"
],
"description": "Markdown Heading 5"
},
"Markdown Heading 6": {
"prefix": "mdh6",
"body": [
"###### ${1:heading 1} ######"
],
"description": "Markdown Heading 6"
},
"Markdown Image": {
"prefix": "mdi",
"body": [
"![${1:Alt text}](${2:/path/to/img.jpg} \"${3:Optional title}\")"
],
"description": "Markdown Image"
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment