VS有没有像eclipse中的ctrl+q这样的快捷键?
它将您的插入符(又名光标)返回到您停止编写代码的位置(对于快速浏览代码非常有用)
It returns your caret(aka cursor) to the place where you stopped writing code(very useful for fast code browsing)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(5)
Ctrl + - 将移动到之前浏览过的代码行(Ctrl + Shift + -< /kbd> 将继续前进)。您可以从 此页面。
Ctrl + - will move to the previously browsed line of code (Ctrl + Shift + - will move forward). You can download PDF versions of all the default keybindings in Visual Studio 2010 from this page.
ReSharper 可以使用 Ctrl+Shift-Backspace 返回到之前的编辑位置。或者按Ctrl+Shift+,(逗号)浏览一些最近版本的地方。
ReSharper has Ctrl+Shift-Backspace to return to previous editing position. Or Ctrl+Shift+, (Comma) to browse some recent edition places.
除了其他答案中提到的内容之外,您还可以使用撤消/重做技巧。只要您想导航到当前文件中的最后一个编辑位置,快速撤消/重做即可将您带到那里。
In addition to what is mentioned in the other answers, you can use the undo/redo trick. As long as you want to navigate to the last edit position in the current file, a quick undo/redo will take you there.
您正在寻找
View.NavigateBackward
。实际的击键取决于您的个人设置,但可能是 Ctrl + -。如果没有,请转到工具/自定义/命令/键盘
以了解它适合您的设置。You are looking for
View.NavigateBackward
. The actual keystroke depends on your personal settings, but it's probably Ctrl + -. If not, go toTools/Customize/Commands/Keyboard
to find out what it is for your setup.有 ctrl+- 和 ctrl+shift+- 向后导航和向前。
There are ctrl+- and ctrl+shift+- That navigate backward and forward.