7

Is there any keyboard shortcut to add the highlighted variable to watch in VS IDE? It takes a bit of time to right click and choosing "Add to watch" option in the very long drop down menu and its annoying.

-Thanks, Suresh.

Suresh
  • 9,495
  • 14
  • 49
  • 63

3 Answers3

10

Not by default.

You can add one: Tools | Options | Environment | Keyboard and enter "watch" in the "show commands..." box. You need the "Debug.AddWatch" command.

Richard
  • 106,783
  • 21
  • 203
  • 265
3

Go to menu: Tools -> Options -> Environment -> Keyboard
search for "watch" and the Debug.Addwatch will be revealed. Add an assigned shortcut.

Nick Dandoulakis
  • 42,588
  • 16
  • 104
  • 136
0

You can just highlight & drag and drop the variable into the watch window.

msvcyc
  • 2,569
  • 4
  • 24
  • 30