Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Keyboard shortcut to "add to watch" in VS 2008

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.

like image 221
Suresh Avatar asked Jul 11 '09 13:07

Suresh


People also ask

How do I add a variable to a watch in Visual Studio?

Select the variable a in the code. Select Debug > QuickWatch, press Shift+F9, or right-click and select QuickWatch.

How do I add keyboard shortcuts to Visual Studio?

On the menu bar, choose Tools > Options. Expand Environment, and then choose Keyboard. Optional: Filter the list of commands by entering all or part of the name of the command, without spaces, in the Show commands containing box. In the list, choose the command to which you want to assign a keyboard shortcut.

How do I open the Watch window in Visual Studio?

Then CTRL+ALT+W + 1,2,3,4 . Or open the Menu.

How do I use shortcuts in Visual Studio?

Keyboard shortcuts in Visual Studio No matter which profile you chose, you can identify the shortcut for a command by opening the Options dialog box, expanding the Environment node, and then choosing Keyboard. You can also customize your shortcuts by assigning a different shortcut to any given command.


1 Answers

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.

like image 147
Richard Avatar answered Sep 22 '22 06:09

Richard