Selecting text and pressing " already works in VSCode to surround a single element and also works for multi-line selections.
NOTE : language dependent . The language syntax should define opening and closing curly braces, for example. quotes, braces, etc. Thus, this will not work in a βplaintextβ file, for example. Change your language mode to CTRL + SHIFT + P and type Change Language Mode
ENTER and select something like JavaScript where it is supported.
What you need is actually not that effective. It is best to use multicursors.
Place the cursor at the beginning of the first line, press CTRL + ALT + DOWN to add the next cursor below on the next line. Keep doing this until you have a cursor in front of all your words.
Then just type " , then END , then " and all your lines are surrounded by quotation marks.
Note. To check if you have a key restriction and what it is, you can always press CTRL + SHIFT + P and type Add Cursor Below
, and if there is a binding to it, it will be displayed on the right of this text.
source share