mirror of
https://github.com/Microsoft/vscode
synced 2024-08-27 21:09:43 +00:00
Add more snippets for basic syntax (#105174)
This commit is contained in:
parent
59b97e1900
commit
0bb98bf686
|
@ -14,43 +14,54 @@
|
|||
"body": "> ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert quoted text"
|
||||
},
|
||||
"Insert code": {
|
||||
"Insert inline code": {
|
||||
"prefix": "code",
|
||||
"body": "`${1:${TM_SELECTED_TEXT}}`$0",
|
||||
"description": "Insert code"
|
||||
"description": "Insert inline code"
|
||||
},
|
||||
"Insert fenced code block": {
|
||||
"prefix": "fenced codeblock",
|
||||
"body": [
|
||||
"```${1:language}",
|
||||
"${TM_SELECTED_TEXT}$0",
|
||||
"```"
|
||||
],
|
||||
"body": ["```${1:language}", "${TM_SELECTED_TEXT}$0", "```"],
|
||||
"description": "Insert fenced code block"
|
||||
},
|
||||
"Insert heading": {
|
||||
"prefix": "heading",
|
||||
"Insert heading level 1": {
|
||||
"prefix": "heading1",
|
||||
"body": "# ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading"
|
||||
"description": "Insert heading level 1"
|
||||
},
|
||||
"Insert heading level 2": {
|
||||
"prefix": "heading2",
|
||||
"body": "## ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading level 2"
|
||||
},
|
||||
"Insert heading level 3": {
|
||||
"prefix": "heading3",
|
||||
"body": "### ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading level 3"
|
||||
},
|
||||
"Insert heading level 4": {
|
||||
"prefix": "heading4",
|
||||
"body": "#### ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading level 4"
|
||||
},
|
||||
"Insert heading level 5": {
|
||||
"prefix": "heading5",
|
||||
"body": "##### ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading level 5"
|
||||
},
|
||||
"Insert heading level 6": {
|
||||
"prefix": "heading6",
|
||||
"body": "###### ${1:${TM_SELECTED_TEXT}}",
|
||||
"description": "Insert heading level 6"
|
||||
},
|
||||
"Insert unordered list": {
|
||||
"prefix": "unordered list",
|
||||
"body": [
|
||||
"- ${1:first}",
|
||||
"- ${2:second}",
|
||||
"- ${3:third}",
|
||||
"$0"
|
||||
],
|
||||
"body": ["- ${1:first}", "- ${2:second}", "- ${3:third}", "$0"],
|
||||
"description": "Insert unordered list"
|
||||
},
|
||||
"Insert ordered list": {
|
||||
"prefix": "ordered list",
|
||||
"body": [
|
||||
"1. ${1:first}",
|
||||
"2. ${2:second}",
|
||||
"3. ${3:third}",
|
||||
"$0"
|
||||
],
|
||||
"body": ["1. ${1:first}", "2. ${2:second}", "3. ${3:third}", "$0"],
|
||||
"description": "Insert ordered list"
|
||||
},
|
||||
"Insert horizontal rule": {
|
||||
|
@ -67,5 +78,10 @@
|
|||
"prefix": "image",
|
||||
"body": "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
|
||||
"description": "Insert image"
|
||||
},
|
||||
"Insert strikethrough": {
|
||||
"prefix": "strikethrough",
|
||||
"body": "~~${1:${TM_SELECTED_TEXT}}~~",
|
||||
"description": "Insert strikethrough"
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue