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

时光总嘲笑我的痴心妄想 提交于 2019-12-03 16:30:00

问题


My current solution is to hit AltD, W, C, which navigates via the menus to the call stack, and then I can use the arrows to navigate. But once I press Enter on a particular frame, I have to repeat again.

Is there a more fluid way to navigate the call stack with just my keyboard?

ReSharper oriented answers are OK for me if you have one!


回答1:


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




回答2:


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



回答3:


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.



来源:https://stackoverflow.com/questions/9618397/how-can-i-navigate-the-call-stack-in-visual-studio-using-just-the-keyboard

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