Take selected text into account for more markdown snippets

Fixes #61914
This commit is contained in:
Matt Bierner 2018-10-26 17:33:02 -07:00
parent 1476540297
commit 26c0e9bb4d

View file

@ -23,14 +23,14 @@
"prefix": "fenced codeblock",
"body": [
"```${1:language}",
"$0",
"${TM_SELECTED_TEXT}$0",
"```"
],
"description": "Insert fenced code block"
},
"Insert heading": {
"prefix": "heading",
"body": "# ${1:text}",
"body": "# ${1:${TM_SELECTED_TEXT}}",
"description": "Insert heading"
},
"Insert unordered list": {
@ -60,12 +60,12 @@
},
"Insert link": {
"prefix": "link",
"body": "[${1:text}](https://${2:link})$0",
"body": "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
"description": "Insert link"
},
"Insert image": {
"prefix": "image",
"body": "![${1:alt}](https://${2:link})$0",
"body": "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
"description": "Insert image"
}
}