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.

enter image description here

Source: stackoverflow.com

Answered By: Penny Liu

Method #2

In VSCode, you can use the following keyboard shortcut to select everything between quotes:

  1. Place your cursor anywhere inside the quoted text.
  2. Press Ctrl + Shift + Alt + Right Arrow (Windows) or Option + 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:

  1. Place your cursor anywhere inside the quoted text.
  2. Press Ctrl + Shift + Space (Windows) or Shift + Command + Space (Mac).

This shortcut will select all the text between the opening and closing quotes, including any line breaks or whitespace.

Comments

Most Popular

Remove Unicode Zero Width Space PHP

PhpStorm, return value is expected to be 'A', 'object' returned

Laravel file upload returns forbidden 403, file permission is 700 not 755