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

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

Go to next compiler error across project in IntelliJ

scalaintellij-idea

提问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

I am using Ctrl+Alt+Up/Downto scroll through the list of errors. This is inside the Compile Messageswindow. The SBT Consoleuses the same shortcut, as stated in the SBT wiki.

我正在使用Ctrl+ Alt+ Up/Down滚动浏览错误列表。这是Compile Messages窗户里面。在SBT Console使用相同的快捷方式,如在规定SBT维基

回答by K. Symbol

For this specific question, just use F2(Next) and Shift+F2(Previous);

对于这个特定问题,只需使用F2(Next) 和Shift+ F2(Previous);

But for any other questions related to shortcuts of IDEA, searching in the Settings-Keymap is better than in Google.

但是对于IDEA快捷键相关的任何其他问题,在Settings-Keymap中搜索比在Google中搜索要好。

Settings-Keymap

设置-键盘映射

回答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 error
  • Enter
  • Escto get to back to code where this error is
  • Command-0(转到编译错误所在的消息选项卡)
  • Down箭头直到到达下一个错误
  • Enter
  • Esc回到这个错误所在的代码

回答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