How can I use a custom Visual Studio Code snippet to remove slashes (/
), along with other characters, from a selected piece of code?
When I've created a new object to keybindings.json, it only recognized the plus sign (+
) :
{
"key": "ctrl+8",
"command": "editor.action.insertSnippet",
"args": {
"snippet": "${TM_SELECTED_TEXT/['+','\/']//gi}"
},
},
Thanks!