visual-studio 从定义返回的 Visual Studio 2010 快捷方式

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/3129028/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 12:10:19  来源:igfitidea点击:

Visual Studio 2010 shortcut to go back from definition

visual-studio

提问by mamu

In Visual Studio when going to definition by pressing F12, it takes you to definition. Is there any way to go back to where you came from?

在 Visual Studio 中按 F12 进入定义时,它会将您带到定义。有什么办法可以回到原来的地方吗?

This is specially annoying when you have definition within same file. If it's in another file then it's ok Ctrl+Tab take you back to previous window. But when it's in same file then have to find where you came from and go there.

当您在同一文件中有定义时,这特别烦人。如果它在另一个文件中,则可以 Ctrl+Tab 带您返回上一个窗口。但是当它在同一个文件中时,就必须找到你来自哪里然后去那里。

回答by Raj Kaimal

Try the key combination: Ctrl+ -.

尝试组合键:Ctrl+ -

回答by Michael Petrotta

As others mention, use Ctrl+ -. This is the View-NavigateBackwardshortcut in Visual Studio's default key mapping scheme, and can be mapped to any key combination you like from Tools->Options->Keyboard. I like Alt+myself, to match typical web browser use.

正如其他人提到的,使用Ctrl+ -。这是View-NavigateBackwardVisual Studio 默认键映射方案中的快捷方式,可以从 Tools->Options->Keyboard 映射到您喜欢的任何组合键。我喜欢Alt+我自己,以匹配典型的 Web 浏览器使用。

Note that, for most five-button mice, the navigate-left button will also do this.

请注意,对于大多数五键鼠标,左导航按钮也将执行此操作。

回答by Chase Florell

 Ctrl  +  - 

 Ctrl  +  - 

回答by gillyb

Ctrl -> '+' -> '-' I searched for a long time till i found that one, and I can't stop using it since!! :)

Ctrl -> '+' -> '-' 我搜索了很长时间才找到那个,从那以后我就不能停止使用它了!!:)