Sublime Forum

Automagic completion like Netbeans

#1

I try SublimeText few days and I start to love it but… it miss one feature what there is in Netbeans (I can’t live without it). When I need CodeIgniter auto completion, I put just several lice code in my project like this:

http://www.masnun.me/2010/06/16/codeigniter-code-completion-with-the-netbeans-ide-for-php.html

After it Netbeans automagically scan project (and codeigniter functions) and give me nice CI autocompletion.
Maybe somebody can do any plugin to do it this way? It will help many people to code (not only CodeIgniter user!)

0 Likes

#2

Try pressing control+space

In the lastest Dev build, autocomplete is triggered automatically (http://www.sublimetext.com/dev).

0 Likes

#3

You think about autocomplete words available in current only.
It is not what I think.
Look at this image:
http://img23.imageshack.us/img23/8523/22567042.th.jpg

Uploaded with ImageShack.us

When I put echo form_[ctrl+space] I get all functions + parameters available in project. It is very useful!
Netbeans simple scan all project and prepare this list. I know that Sublime Text should not be copy of Netbeans and other fat IDE but this feature is worth it I think :smile:

0 Likes

#4

I think you might like the SublimeCodeIntel plugin. If I read your request correctly, it should do what you want. It hooks into autocomplete so that autocomplete knows how to offer the right completions.

0 Likes

#5

Yes, description looks very promising but unfortunatelly doesn’t work on my Ubuntu :frowning:
I see it is known problem:
https://forum.sublimetext.com/t/codeintel-ported-from-open-komodo-editor/1746/164&hilit=updating+indexes#p19502

“Keeps writing “Processing PHP”, or “Updating indexes” or “Doing CodeIntel”.”

0 Likes

#6

I can’t belive… really there is no way to do it in Sublime text?

0 Likes

#7

The CTags plugin uses CTags to index functions and classes, but I’m not sure it hooks into autocomplete (would be interesting to see how easy it would be to do so though - my thinking is very easy but I haven’t looked into it).

Regardless of the lack of autocomplete integration, it’s still useful for ‘go to definition’, but I know CTags is quite a bit dumber than the IDE equivalents.

0 Likes