Вопрос

is there a way to add auto-completion support for Java functions and libraries to Sublime Text 2, like Eclipse has?

Это было полезно?

Решение

You can try out my plugin: Display-Functions (Java). It adds function autocompletion for files in the current directory. It's pretty powerful, too. I have debated adding support for import but have not seen a high enough demand. If that's important though, let me know.

You can install it through Package Control or from Github: https://github.com/BoundInCode/Display-Functions

Другие советы

You can also try with SublimeJava plugin https://github.com/quarnster/SublimeJava/ though it didn't work as expected for me.

I found that it couldn't properly complete methods from classes of my own project when triggering completion on an instanciated object.

Foo foo = new Foo();
foo. // didn't trigger autocompletion popup even though imports where in place

also I'd rather have functionality to automatically add imports. SublimeJava doesn't provide this. Also I found it rather slow in my particular case.

You can also try Subclim https://github.com/JulianEberius/Subclim which provides integration with eclim. The problem here is that you need Eclipse running (eclimd didn's worked properly for me).

By the way, I tried all these configurations running Sublime Text 2 on Windows 7 OS.

Лицензировано под: CC-BY-SA с атрибуция
Не связан с StackOverflow
scroll top