Keyboard shortcut to “add to watch” in VS 2008

半城伤御伤魂 提交于 2019-12-23 08:33:50

问题


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.


回答1:


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.




回答2:


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




回答3:


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



来源:https://stackoverflow.com/questions/1113672/keyboard-shortcut-to-add-to-watch-in-vs-2008

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!