如何在 Scala IDE 中导入所有未导入的类?

发布于 2024-11-15 02:40:03 字数 242 浏览 6 评论 0原文

当我在 Eclipse 中使用 Java 并编写类时,有时我必须导入类。最快的方法是使用键盘快捷键:CtrlShiftO。但这个键盘快捷键在 Scala IDE 中似乎被破坏了。它会打开一个空的“重构”弹出窗口。

Scala IDE 中是否有用于导入所有未导入类的键盘快捷键?

When I use Java with Eclipse and write a class, sometimes I have to import classes. The fastest way to do that is with a keyboard shortcut: CtrlShiftO. But this keyboard shortcut seem to be broken in Scala IDE. It opens an empty "Refactoring" popup instead.

Is there a keyboard shortcut for importing all unimported classes in Scala IDE?

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

幸福丶如此 2024-11-22 02:40:03

我们当前实施的组织导入不会添加缺失的导入,它只会重新组织现有导入并删除不需要的导入。我目前正在开发一个改进版本,添加缺失的导入也在我的议程上。

与此同时,我们已经有了一个快速修复程序,您可以使用它来导入单个缺失的导入。

Our current implementation of Organize Imports doesn't add missing imports, it only reorganizes the existing ones and removes unneeded ones. I'm currently working on an improved version, and adding missing imports is also on my agenda.

In the meantime, we already have a quickfix that you can use to import a single missing import.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文