How can I navigate the call stack in Visual Studio using just the keyboard?

做~自己de王妃 提交于 2019-12-03 05:01:33

I use the VS2010 default keyboard mapping scheme and by pressing Ctrl+Alt+C brings up the call stack window in which I can use the arrow keys to navigate.

The macro name is Debug.CallStack

Here is a dorky AutoHotkey script that will navigate up and down the call stack using CtrlAltNumPadUp and CtrlAltNumPadDown.

SetTitleMatchMode 2 ; Allow for partial matches in window titles
#IfWinActive, (Debugging) ; Only work while VS is debugging
  ^!Numpad2:: ; Navigate down Call Stack in Visual Studio
    Send ^!c
    Send {Down}
    Send {Enter}
  return
  ^!Numpad8:: ; Navigate up Call Stack in Visual Studio
    Send ^!c
    Send {Up}
    Send {Enter}
  return
#IfWinActive

Call Stack view in Visual Studio can be brought up with Ctrl+Alt+C or Alt+7. That allows navigating the stack with and as well as performing "Switch To Frame" action with Enter⏎.

Unfortunately, switching to a frame moves focus to the editor window, so the above sequence of actions has to be done again if you want to switch to another frame.

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