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.
Select the variable a in the code. Select Debug > QuickWatch, press Shift+F9, or right-click and select QuickWatch.
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.
Then CTRL+ALT+W + 1,2,3,4 . Or open the Menu.
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.
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.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With