.net Visual Studio 跳转到下一个错误快捷方式?
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/1695040/
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
Visual Studio jump to next error shortcut?
提问by Brian Webster
When a compile fails in VB.NET in Visual Studio 2008, an Error List pops up at the bottom of the screen. To jump to an error, I double click on an error in the error list.
当 Visual Studio 2008 中的 VB.NET 编译失败时,屏幕底部会弹出错误列表。要跳转到错误,我双击错误列表中的错误。
Is there a shortcut to automatically jump to the next error in the list? It gets a little bit tedious at times having to reach down and double click a list that I like to keep collapsed.
有没有快捷方式可以自动跳转到列表中的下一个错误?有时不得不向下伸手双击我喜欢折叠的列表,这有点乏味。
回答by Brian
F8(and Shift+F8to go backwards).
F8(和Shift+F8倒退)。
Or at least that's what it is in my keyboard profile - you can go to tools\options\environment\keyboard and check out Edit.GoToNextLocation.
或者至少这是我的键盘配置文件中的内容 - 您可以转到工具\选项\环境\键盘并查看 Edit.GoToNextLocation。
NoteIf you configured Visual Studio using VB keyboard settings, no key has been assigned to this function. You need to pick your own and assign them.
注意如果您使用 VB 键盘设置配置了 Visual Studio,则尚未为此功能分配任何键。您需要自己挑选并分配它们。
回答by Luis Filipe
Funny because I use CTRL+SHIFT+F12which is View.NextError.
滑稽的,因为我使用CTRL+ SHIFT+F12是View.NextError。
I wonder what's the difference between View.NextErrorand Edit.GoToNextLocation.
我想知道View.NextError和Edit.GoToNextLocation之间有什么区别。
回答by Simon M?Kenzie
If you have ReSharper installed, you can use ReSharper.ReSharper_GotoNextErrorInSolution, the default mapping for which is Shift+Alt+PgDn. This is the equivalent of clicking on the error icon shown in the bottom right of Visual Studio's status bar:
如果您已经安装了ReSharper,您可以使用ReSharper.ReSharper_GotoNextErrorInSolution,为此,默认映射Shift+ Alt+ PgDn。这相当于单击 Visual Studio 状态栏右下角显示的错误图标:



