Is there is any shortcut to wrap in braces or quotes selected text/word in vscodevim plugin?
Thanks in advance!
Is there is any shortcut to wrap in braces or quotes selected text/word in vscodevim plugin?
Thanks in advance!
Vscodevim replicates the functionality of the surround-vim plugin, which means it provides a couple of operators to deal with surrounding.
In your case, ys
should help you.
On a visual selection, ys"
will add quotes.
Hi the extension in VS Code works for me; the syntax is:
y s <motion> <desired>
So one example would be:
ysw"
w -> motion to define from your cursor till the end of that word
" -> What should surround the word
Note that motion will define what is surrounded. Therefore you can write
ysiw"