Sublime Forum

How to add more characters options to the text wrapper?

#1

for example, when u select a text then press the quote or double quotes the text gets wrapped automatically by just selecting the quote or brace or any of the other default chars.

now what if i want to add other chars aswell ?, like the code char in markdown “`” or period or dash, etc…

0 Likes

#2

finally here is how for anyone is looking for it

{ "keys": ["`"], "command": "insert_snippet", "args": {"contents": "`${0:$SELECTION}`"}, "context":
    [{"key": "selection_empty", "operator": "equal", "operand": false}]
},
0 Likes