Skip to content

Add to watch when caret within variable name, without selection #169582

Description

@dev-joss

This was originally posted here - microsoft/vscode-cpptools#10293

When the caret is within a variable name, be able to add to watch, without having to to create a text selection (select some characters within the variable name)

  1. Create new C++ project
  2. Debug..
  3. Place left click on variable name to place caret on / in variable.
  4. Right click
  5. No option to watch variable.
  6. Select some characters of the variable name (even just 1)
  7. Right click
  8. Option to watch variable.

This is the behaviour of visual studio

  1. Create new C++ project
  2. Debug..
  3. Place left click on variable name to place caret on / in variable.
  4. Right click
  5. Option to watch variable

Extension version: 1.13.8
VS Code version: Code 1.74.1 (1ad8d51, 2022-12-14T10:30:51.966Z)
OS version: Windows_NT x64 10.0.22621
Modes:
Sandboxed: No

Metadata

Metadata

Assignees

Labels

debugDebug viewlet, configurations, breakpoints, adapter issuesfeature-requestRequest for new features or functionalityhelp wantedIssues identified as good community contribution opportunitiesinsiders-releasedPatch has been released in VS Code Insidersverification-neededVerification of issue is requestedverifiedVerification succeeded

Type

No type

Fields

No fields configured for issues without a type.

Projects

No projects

Milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions