'Weird Question: VSCode marked text surrounded with character

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!



Solution 1:[1]

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"
  }
}

Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source
Solution 1 rioV8