[英]After "Go to Definition", is there a command to return to where you came from?
If so, is it a stack?如果是这样,它是一个堆栈吗?
That is, can I:也就是说,我可以:
GoToDefinition转到定义
GoTODefinition转到定义
GoToDefinition转到定义
and then pop back up the call stack?然后弹回调用堆栈?
None of the Edit.GoTo... commands do what I am looking for.没有一个 Edit.GoTo... 命令可以满足我的要求。
TIA. TIA。
You can go to the last place you navigated to by doing CTRL + - 你可以通过CTRL +去你导航到的最后一个地方-
(That's the control key and the "minus" or "dash" key.) (这是控制键和“减号”或“破折号”键。)
The correct way to navigate this stack is with View.ForwardBrowseContext and View.PopBrowseContext commands. 导航此堆栈的正确方法是使用View.ForwardBrowseContext和View.PopBrowseContext命令。 In the default C# schema they are bound to Ctrl + Shift + 7 and Ctrl + Shift + 8 respectively.
在默认的C#架构中,它们分别绑定到Ctrl + Shift + 7和Ctrl + Shift + 8 。
Tip by Brian Sullivan (Ctrl+-) works great. Brian Sullivan提示(Ctrl + - )效果很好。
You also can use a side button on your mouse (if your mouse has a side button and that button programmed for Back functionality in a browser). 您还可以使用鼠标上的侧面按钮(如果您的鼠标有一个侧面按钮,并且该按钮在浏览器中设置为“后退”功能)。
If you have an MS mouse with the latest Intellipoint drivers installed, you can have program-specific commands associated with mouse buttons. 如果您安装了最新的Intellipoint驱动程序的MS鼠标,则可以使用与鼠标按钮关联的特定于程序的命令。 Find out what the "Back" keyboard command is for your program.
找出你的程序的“后退”键盘命令。 For VS .NET 2003/2005/2008 it is Ctrl+\\ (control backslash) which is tied to View.NavigateBackward.
对于VS .NET 2003/2005/2008,它是Ctrl + \\(控制反斜杠),它与View.NavigateBackward绑定。 Then go into the Control Panel for the mouse, click on the checkbox for "Enable program-specific settings" and then click on Settings.
然后进入鼠标的控制面板,单击“启用程序特定设置”复选框,然后单击“设置”。
Click on "Add" and pick your favorite Visual Studio and map Ctrl-\\ to the left button. 单击“添加”并选择您喜欢的Visual Studio并将Ctrl- \\映射到左侧按钮。
Others programs of interest: 其他感兴趣的节目:
uVision3 IDE (the Keil compiler): Alt-Left
Adobe Reader 9.0: Alt-Left
javaw (as in Eclipse): Ctrl-F2
VB6: Ctrl-Shift-F2
Actually, the Eclipse one isn't Ctrl-F2 but is something that cannot be mapped, so I added that mapping within Eclipse and then the new mapping in the mouse driver. 实际上,Eclipse不是Ctrl-F2,而是无法映射的东西,所以我在Eclipse中添加了映射,然后在鼠标驱动程序中添加了新映射。
Hope that helps! 希望有所帮助!
Navigate backward
and Navigate forward
is the right choice. Navigate backward
Navigate forward
是正确的选择。 These can be found in toolbars. 这些可以在工具栏中找到。
In Microsoft Dev Studio it was always mapped to CTRL + * (The * on the numerical keypad) but not in C# Express, I notice. 在Microsoft Dev Studio中,它始终映射到CTRL + * (数字小键盘上的* ),但不是在C#Express中,我注意到了。 Here it's Ctrl + Shift + 8 , as already noted.
如上所述,这是Ctrl + Shift + 8 。
I just use the back button on my mouse. 我只是使用鼠标上的后退按钮。
Has always worked by default for me. 一直默认为我工作。
The easiest way for me to do it is to add a bookmark before I go to the definition.对我来说最简单的方法是在定义之前添加一个书签 I go 。 To get back i just toggle back
要回来,我只是切换回来
A third party tool like ReSharper would give you the functionality you require. 像ReSharper这样的第三方工具可以为您提供所需的功能。
It is "da bomb!" 这是“大炸弹!”
Navigation in the Solution explorer is a thing of the past. 解决方案资源管理器中的导航已成为过去。
Kindness, 善良,
Dan 担
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.