views:

121

answers:

3

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.

A: 

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

msvcyc
Asker specifically wants a keyboard shortcut.
Binary Worrier
+1  A: 

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

Nick D
+1  A: 

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