开发者

ScalaIDE for Eclipse: How can I autocomplete from libraries?

When editing Java files, if I use auto-complete on a class that hasn't yet been imported, the editor proposes the correct class and subsequently generates the import code. When editing Scala code, the only native Java library classes appear to be supported.

Thanks to @fiction, at开发者_如何学C least I can write the name of the class and then use 'Organize Imports'(Ctrl+Shift+o) , or per this answer I can use quick fix to generate the import, but I'd much prefer to use autocomplete in the first place, especially if there's a question about spelling. Is this unsupported, or is something configured something wrong? (I've already run Setup Diagnostics with JDT content-assist checked.)

I'm using version 2.0.0.beta09-29-201107201639-529111d.


A recent message on the ScalaIDE developers forum lists a tentative "roadmap," which if I understand correctly, seems to indicate that this feature is not yet available, but should be deployed very soon (planned to be released in the next few weeks).

2.0 version: 1st week of September (optimistic)

...

  • scope completion using all types in the classpath (can be done based on the Java search engine) -- probably a 'low hanging fruit'
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜