is there a way to add auto-completion support for Java functions and libraries to Sublime Text 2, like Eclipse has?
By default, Sublime Text will automatically show the completions popup when a user is editing source code or markup, but not within prose in comments, strings or markups. Pressing the Esc key will hide the completions popup. To manually show the completions popup, press Ctrl+Space.
From the Sublime Text docs: Auto complete shows the completion popup as you type, so you can fill in long words by typing only a few characters. It's enabled by default for source code and HTML (but only after entering a < character).
Go to Preferences -> Settings - User and add the following (remove the last comma if it's the last entry in the array): "auto_complete": true, "auto_complete_commit_on_tab": true, "auto_complete_selector": "source, meta. tag", // you can make this "source - comment, meta.
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
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With