Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Double-Click Highlighted QuotesNew to Visual Studio Code? Get it now.
Double-Click Highlighted Quotes

Double-Click Highlighted Quotes

Zaxckheal101

|
1 install
| (0) | Free
Double-click inside double quotes to select everything between them - in any language.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Double-Click Highlighted Quotes

Context

Double-Click Highlighted Quotes is a small VS Code extension that selects the entire contents of a double-quoted string when you double-click inside it. Instead of dragging across a long value or pressing Home/End, one double-click selects everything strictly between the opening " and the closing ".

It works in any language because it reads the raw text of the line rather than relying on a language parser. That includes JSON, HTML, JavaScript, TypeScript, CSS, Markdown, plain text, and anything else that uses double quotes. Escaped quotes such as \" are ignored when the boundaries are calculated, and the quote marks themselves are never included in the selection.

Usage

  1. Install the extension (for example with code --install-extension double-click-highlighted-quotes-0.0.1.vsix).
  2. Somewhere in your editor, double-click inside a pair of double quotes, for example "hello world". Everything between the quotes is selected.
  3. Press Alt+' to turn the double-click behaviour on or off. A status message confirms the new state.
  4. You can also run Double-Click Highlighted Quotes: Toggle Double-Click Quote Highlighting from the Command Palette.

The toggle state is remembered across VS Code restarts and new windows. The feature is enabled by default.

Disclaimer

This extension is provided as-is, without warranty of any kind. It only reads the text of the active line to calculate a selection; it does not collect telemetry, modify your files, or send data anywhere. Quote detection is intentionally simple: unusual cases such as quote pairs split across multiple lines, unmatched quotes, or other syntax-specific rules may not produce the expected selection. Use it at your own risk, and verify selections before editing or deleting text.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft