In Sublime Text 2 you can type a string and then highlight some section of the string like the following:
Then you can enclose the selected text in " by just typing a single " which gives you this:
When you do that the cursor ends up between d and ", I'd really like it to end up outside of the " at the end of the selected string.
Is something like this possible?
This isn't a feature I use, but the following seems to work ok. Create a snippet like this:
<snippet>
<content><![CDATA["$SELECTION"$0]]></content>
</snippet>
The $0
specifies the cursor exit point. Keybind it in your /Packages/User/Default (Linux).sublime-keymap
file:
{ "keys": ["\""], "command": "insert_snippet",
"args": {"name": "Packages/User/quotes.sublime-snippet"}}
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With