سؤال

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?

هل كانت مفيدة؟

المحلول

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.

مرخصة بموجب: CC-BY-SA مع الإسناد
لا تنتمي إلى StackOverflow
scroll top