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)
- Create new C++ project
- Debug..
- Place left click on variable name to place caret on / in variable.
- Right click
- No option to watch variable.
- Select some characters of the variable name (even just 1)
- Right click
- Option to watch variable.
This is the behaviour of visual studio
- Create new C++ project
- Debug..
- Place left click on variable name to place caret on / in variable.
- Right click
- 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
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)
This is the behaviour of visual studio
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