Is there a “back” button/hotkey for navigation in Visual Studio 2008?

倾然丶 夕夏残阳落幕 提交于 2020-01-02 01:03:49

问题


I jumped to a line in a code file in Visual Studio using "Go to definition". I am now lost in the file and I want to go back to the line I was at before. How do I do it?


回答1:


You can hit Ctrl - (Ctrl and the minus sign) I believe. Also, Ctrl Shift minus navigates forward.

Depending on your mouse software, you should be able to map those keyboard shortcuts to your mouse's back/forward buttons. You can typically do this with gaming mice, and there's probably third-party gaming software that lets you do it also. Mapping "Find all references" to a button is great too.




回答2:


You can also use you mouse back and forward navigation buttons if you have such a device.

Please note that if you are using a Logitech device you need to launch SetPoint with the same privileges as Visual Studio. In other words, if you launch Visual Studio as admin, you need to launch SetPoint as admin too for the Back and Forward to work properly.




回答3:


I realize this is an old thread, but since it was the first link I came across from a Google search, I'll mention what I found:

In Visual C# 2010 Express, under Tools -> Settings, there is a "Basic Settings" option and an "Expert Settings" option. (Basic Settings is selected by default.) If you select Expert Settings, the standard toolbar will have back/forward buttons.




回答4:


By using the Navigate Backwards command. You can find a more detailed description here.




回答5:


What threw me for a loop is that only the minus on the left side of my keyboard works, not the one on the numpad. This should save me a lot of time. I always wished for this and never thought to search for help on it.

(This is in Visual c# 2010 Express with an older Microsoft ergo keyboard (2000?)



来源:https://stackoverflow.com/questions/1100229/is-there-a-back-button-hotkey-for-navigation-in-visual-studio-2008

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