What is the keyboard shortcut to select everything between quotes in VSCode
✔ Recommended Answer
To solve the issue, I used the following steps: I pressed Shift + End to select the text from the current cursor position to the end of the line, and then I pressed the Left Arrow key to reduce the selection size.
Source: stackoverflow.com
Answered By: Penny Liu
In VSCode, you can use the following keyboard shortcut to select everything between quotes:
- Place your cursor anywhere inside the quoted text.
- Press
Ctrl + Shift + Alt + Right Arrow
(Windows) orOption + Shift + Right Arrow
(Mac).
This shortcut will select all the text between the nearest pair of quotes on the same line as your cursor.
If you want to select all the text between the opening and closing quotes, you can use the following keyboard shortcut:
- Place your cursor anywhere inside the quoted text.
- Press
Ctrl + Shift + Space
(Windows) orShift + Command + Space
(Mac).
This shortcut will select all the text between the opening and closing quotes, including any line breaks or whitespace.
Comments
Post a Comment