Reputation: 15
I know, its a weird question, but is there a way to make the selected text surrounded by two charakters like in 4coder?
e.g. ⌊Selected Text⌉
Thanks!
Upvotes: 0
Views: 35
Reputation: 28693
You can use a snippet on a key binding:
{
"key": "ctrl+k 1", // or some other combo
"command": "editor.action.insertSnippet",
"when": "editorTextFocus",
"args": {
"snippet": "[${TM_SELECTED_TEXT}]$0"
}
}
Upvotes: 1