Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the keyboard shortcut to select everything between quotes in VSCode

I am looking for a quick way to select data:image/png;base64,... between matching quotes in VSCode.

enter image description here

I assigned editor.action.selectToBracket keybindings to Ctrl + Shift + m as keyboard shortcut. This will select everything between php tags.

enter image description here

Another attempt is Shift + Alt + Right Arrow. This will select a whole single line.

enter image description here

How to do that in VSCode and not rely on any VSCode extensions?

like image 606
Penny Liu Avatar asked Jul 13 '19 15:07

Penny Liu


People also ask

What is the shortcut key for Smart Select in VSCode?

Smart Select in VSCode The build in keyboard shortcut for smartSelect is: Shift + Alt + Right Arrow This will grow your selection and smartly select everything between the matching brackets or quotes.

How to select everything between brackets in VSCode?

If you are looking for a quick way to select everything between matching brackets or quotes in VSCode, the following VSCode tips are for you. Smart Select in VSCode The build in keyboard shortcut for smartSelect is: Shift + Alt + Right Arrow

What does Ctrl + K do in VSCode?

The complete list of VSCode Keyboard Shortcuts (for Windows) In VSCode, aside from simple key combinations the Ctrl + K combo initiates a special action that requires second key of chord. It was added to increase the number of shortcuts you can use. When you press Ctrl + K you will notice vscode status bar change to a new message that says:

How to assign keyboard shortcuts in VSCode?

Double click on any of the keyboard shortcuts and a new box will pop up with an input field. Click inside it and simply press the key combination to reassign to your own shortcut. You probably already know about this official VSCode keyboard shortcuts PDF.


1 Answers

I ended up solving it as follows: Shift + End select from the current cursor location to the end of the line, then enter Left Arrow to shrink the selection.

enter image description here

like image 115
Penny Liu Avatar answered Nov 14 '22 23:11

Penny Liu