visual-studio-codevscodevim

Surround a text/word with braces using vscodevim


Is there is any shortcut to wrap in braces or quotes selected text/word in vscodevim plugin?

Thanks in advance!


Solution

  • 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.

    More on this here