有没有“后背”? Visual Studio 2008 中用于导航的按钮/热键?
我使用“转到定义”跳转到 Visual Studio 中代码文件中的一行。 我现在迷失在文件中,我想回到之前的位置。 我该怎么做?
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(6)
我相信你可以按 Ctrl+- 。 此外,Ctrl+Shift+- 向前导航。
根据您的鼠标软件,您应该能够将这些键盘快捷键映射到鼠标的后退/前进按钮。 您通常可以使用游戏鼠标来执行此操作,并且可能有第三方游戏软件也可以让您执行此操作。 将“查找所有引用”映射到按钮也很棒。
You can hit Ctrl+- I believe. Also, Ctrl+Shift+- 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.
如果您有此类设备,您还可以使用鼠标后退和前进导航按钮。
请注意,如果您使用 Logitech 设备,则需要使用与 Visual Studio 相同的权限启动 SetPoint。 换句话说,如果您以管理员身份启动 Visual Studio,则也需要以管理员身份启动 SetPoint,后退和前进才能正常工作。
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.
我意识到这是一个旧线程,但由于这是我从 Google 搜索中找到的第一个链接,因此我将提及我发现的内容:
在 Visual C# 2010 Express 中,在“工具”->“ 设置中,有“基本设置”选项和“专家设置”选项。 (默认情况下选择“基本设置”。)如果选择“专家设置”,标准工具栏将具有后退/前进按钮。
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.
在 Visual Studio 2019 中
要将此设置更改为您想要的任何内容(或查看当前映射),请使用
工具->选项
搜索
键盘
在Show Commands contains:
下,然后搜索
NavigateBackward
或NavigateForward
In Visual Studio 2019
To change this setting to whatever you want (or see the current mapping), use
Tools->options
search for
Keyboard
underShow commands containing:
then search for
NavigateBackward
orNavigateForward
通过使用向后导航命令。 您可以找到更详细的说明 此处。
By using the Navigate Backwards command. You can find a more detailed description here.
让我困惑的是,只有键盘左侧的减号起作用,小键盘上的减号不起作用。 这应该可以节省我很多时间。 我一直希望这个,但从未想过寻求帮助。
(这是在 Visual c# 2010 Express 中使用较旧的 Microsoft ergo 键盘(2000?)
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?)