is there a way to add auto-completion support for Java functions and libraries to Sublime Text 2, like Eclipse has?
问题:
回答1:
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
回答2:
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.