mirror of
https://github.com/microsoft/vscode.git
synced 2025-12-24 20:26:08 +00:00
Take selected text into account for more markdown snippets
Fixes #61914
This commit is contained in:
@@ -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": "$0",
|
||||
"body": "$0",
|
||||
"description": "Insert image"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user