Ask Ubuntu is a question and answer site for Ubuntu users and developers. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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: It is all about coding (and therefore also has tips on editors) – Rinzwind May 8 '11 at 9:18
@Rinzwind: Did you mean 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
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

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

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.


share|improve this answer

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

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
What is "EDI"? Haven't seen that before. – Fred Nurk May 8 '11 at 9:16
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

Komodo Edit is a personal favourite and supports auto-completion, along with great other features ; look here for more details :

share|improve this answer

I would vote for sublime_text

share|improve this answer

protected by jokerdino Jun 27 '13 at 8:57

Thank you for your interest in this question. Because it has attracted low-quality or spam answers that had to be removed, posting an answer now requires 10 reputation on this site (the association bonus does not count).

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.