Take the 2-minute tour ×
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It's 100% free, no registration required.

Is there any editor/IDE(or a plugin for an existing editor like Vim or GEdit) that does auto-completion of many languages (not just C++)? Aptana does only HTML/CSS/JS and Code::Blocks does only C++ (I might be wrong on this one. If so, please correct me).

In Windows, Notepad++ does a pretty neat job.

share|improve this question
    
Suggestion: have a look at the sister site: webapps.stackexchange.com It is all about coding (and therefore also has tips on editors) –  Rinzwind May 8 '11 at 9:18
1  
@Rinzwind: Did you mean stackoverflow.com instead of Web Apps? –  Fred Nurk May 8 '11 at 9:33
    
I searched SO initially and found no good answers which are Ubuntu specific. –  Manu May 8 '11 at 14:40
add comment

7 Answers 7

up vote 2 down vote accepted

Vim has a couple different forms of completion built-in for many programming languages. Good places to start might be ":help 'complete'" and looking up omni-completion.

share|improve this answer
    
Thanks a ton! Omni-completion along with smart autocompletion using tabs is a lifesaver! –  Manu May 8 '11 at 14:29
add comment

Personally, I like NetBeans. It is multi-lingual, C++, Java, PHP to name a few, and what I like most about it, is that NetBeans unlike any other IDE looks inside the header files you have included and auto-completes not only the keywords and local variable names, but also more sophisticated names (for example, I use GTKmm library and NetBeans not only list me all possible completions, but also provides me with a documentation of any function I choose).

From my own research NetBeans is (unfortunately) the only IDE capable of that, so you may want to give it a try.

share|improve this answer
    
Netbeans is awesome and is the closest equivalent of Visual Studio in Linux. But it feels rather heavy. –  Manu May 8 '11 at 14:27
    
It is, when you download it from the repo. Alternatively you can download the newer version from the website, where you can uncheck modules you don't need. For example, I chose ONLY C++, and is much lighter :) –  Rafał Cieślak May 8 '11 at 15:33
add comment

Using an IDE is highly personal but do also have a look at Geany. Do not let the rather basic website fool you: Geany supports a lot of languages out of the box and is very small (just 9Mb).

share|improve this answer
1  
What is "EDI"? Haven't seen that before. –  Fred Nurk May 8 '11 at 9:16
1  
That's called a typo :+ –  Rinzwind May 8 '11 at 9:18
    
I'm disappointed, :/ I was expecting something nifty like "Editor Development I---". :P –  Fred Nurk May 8 '11 at 9:32
    
Electronic Data Interchange (I code these alot so I make lots of typos with it when typing ide ;) ) –  Rinzwind May 8 '11 at 10:10
add comment

Editors in Unix can tend to set of language flame wars if one isn't careful. This is not my intention here at all. I started out using vim for code development and at some point shifted to emacs where I've stayed ever since, and that was over a decade ago. I have it configured to do autocompletion of all the languages I use (C/C++, Lisp, Python, Perl). But like any powerful editor it has a learning curve.

But vi/m is no different - I know hard core hackers who have it configured to do the same kinds of things I do. I think what it comes down to on some level is how you are wired - they're both extremely capable, very powerful code editors with more features than most people will ever be able to learn to use.

The problem I've noticed over the years with the IDE environments is that they may have a much shallower learning curve, but there's a reason for it. You have to gain elevation sometime if you want to get somewhere. A really good editor will force you to learn a lot of stuff early on and then get out of your way. The other ones don't force you to learn much (worth knowing) but are forever in your way after that.

Just my two cents.

jkcunningham

share|improve this answer
add comment

Komodo Edit is a personal favourite and supports auto-completion, along with great other features ; look here for more details : http://www.activestate.com/komodo-edit

share|improve this answer
add comment

Gedit provides a word completion plugin although I've not actually used it. Install gedit-plugins and you'll have it.

share|improve this answer
add comment

I would vote for sublime_text http://www.sublimetext.com/

share|improve this answer
add comment

protected by jokerdino Jun 27 '13 at 8:57

Thank you for your interest in this question. Because it has attracted low-quality answers, posting an answer now requires 10 reputation on this site.

Would you like to answer one of these unanswered questions instead?

Not the answer you're looking for? Browse other questions tagged or ask your own question.