Skip to content

Double-click on punctuation selects adjacent space instead of the character #266095

@alexchexes

Description

@alexchexes

Does this issue occur when all extensions are disabled?: Yes

Double-clicking non-letter characters selects the neighboring space instead of the character itself. See attached screencast.

Sample text:

// a b c 1 2 3 ~ ! @ # $ % ^ & * ( ) _ + \ /
// aa AA // ← double-click the first character of these pairs

Steps to Reproduce:

  1. Paste the sample lines above.
  2. Double-click on a symbol like @, #, !, \, or /.
  3. Also try the first / in //.

Expected:
The clicked character (or token, e.g. //) is selected.

Actual:
The adjacent space is selected; the symbol itself is not. For //, double-clicking the first / selects the space next to it, while double-clicking the second / selects // as expected.

Please see the screencast to better understand what is happening.

Code_-_Insiders_2025-09-10--21-42-57--321.mp4

Metadata

Metadata

Labels

bugIssue identified by VS Code Team member as probable bugeditor-wordnavEditor word navigation issuesunreleasedPatch has not yet been released in VS Code Insiders

Type

No type

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions