Skip to content

Commit 26c0e9b

Browse files
committed
Take selected text into account for more markdown snippets
Fixes microsoft#61914
1 parent 1476540 commit 26c0e9b

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

extensions/markdown-basics/snippets/markdown.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,14 +23,14 @@
2323
"prefix": "fenced codeblock",
2424
"body": [
2525
"```${1:language}",
26-
"$0",
26+
"${TM_SELECTED_TEXT}$0",
2727
"```"
2828
],
2929
"description": "Insert fenced code block"
3030
},
3131
"Insert heading": {
3232
"prefix": "heading",
33-
"body": "# ${1:text}",
33+
"body": "# ${1:${TM_SELECTED_TEXT}}",
3434
"description": "Insert heading"
3535
},
3636
"Insert unordered list": {
@@ -60,12 +60,12 @@
6060
},
6161
"Insert link": {
6262
"prefix": "link",
63-
"body": "[${1:text}](https://${2:link})$0",
63+
"body": "[${TM_SELECTED_TEXT:${1:text}}](https://${2:link})$0",
6464
"description": "Insert link"
6565
},
6666
"Insert image": {
6767
"prefix": "image",
68-
"body": "![${1:alt}](https://${2:link})$0",
68+
"body": "![${TM_SELECTED_TEXT:${1:alt}}](https://${2:link})$0",
6969
"description": "Insert image"
7070
}
7171
}

0 commit comments

Comments
 (0)