scala 在 IntelliJ 中跨项目转到下一个编译器错误
声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow
原文地址: http://stackoverflow.com/questions/24939728/
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
Go to next compiler error across project in IntelliJ
提问by blaha
I spend a lot of time going back and forth between SBT and IntelliJ, getting a file, line number, and error from SBT and navigating to it in IntelliJ. Is there a way to automate this at all? Even if it's only via IntelliJ's compiler, I'd love to be able to navigate to the next error project-wide.
我花了很多时间在 SBT 和 IntelliJ 之间来回切换,从 SBT 获取文件、行号和错误,然后在 IntelliJ 中导航到它。有没有办法完全自动化?即使只是通过 IntelliJ 的编译器,我也希望能够在整个项目范围内导航到下一个错误。
回答by AlejandroDG
To navigate between errors or warnings in IntelliJ you can do one of the following:
要在 IntelliJ 中的错误或警告之间导航,您可以执行以下操作之一:
- Use keyboard shortcuts F2(Next) and Shift+F2(Previous) respectively.
- On the main menu, choose
Navigate|Next / Previous Highlighted Error.
- 分别使用键盘快捷键F2(Next) 和Shift+ F2(Previous)。
- 在主菜单上,选择
Navigate|Next / Previous Highlighted Error.
回答by sina72
回答by K. Symbol
回答by Tomer Ben David
To go to next compilatino error on next file:
转到下一个文件的下一个编译错误:
Command-0(go to messages tab where compile errors are)Downarrow until get to next errorEnterEscto get to back to code where this error is
Command-0(转到编译错误所在的消息选项卡)Down箭头直到到达下一个错误EnterEsc回到这个错误所在的代码
回答by Reuben Steenekamp
For going to the next error across the entire project, use Alt+F2 instead of just F2.
要转到整个项目的下一个错误,请使用 Alt+F2 而不是仅使用 F2。
回答by atreeon
For the mac I couldn't find anything that worked until I discovered the following
对于 mac,我找不到任何有用的东西,直到我发现以下内容
cmd + 1 -> f2 (on files) -> escape -> f2 (inside file) -> cmd + 1 -> repeat
cmd + 1 -> f2 (on files) -> escape -> f2 (inside file) -> cmd + 1 -> repeat


