I had to reinstall VS Code recently, I rember using Ctrl+W to kind of smart select everything between quotes but now what that command does is move me to another file/tab instead? Is there a way to do this in VS Code, Ctrl+W was just so easy to me, really helped with deleting or copying strings of text.
As @Mark says in the comment, you can use the "Expand Selection" shortcut. The first press will select the word to the right of the cursor. The second press selects everything between the quotes.
The shortcut on Windows by default:
Shift + Alt + →
And OS X:
Ctrl + Shift + ⌘ + →
Try using the Quick and Simple Text Selection extension.
On a Mac, the extension's default shortcut is ⌘ k, ". This is a chord, so:
This will select everything in double quotes.
If you want to select everything in single quotes use ⌘ k, '
It also works for brackets and back ticks
On Windows, replace ⌘ with Ctrl
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