3

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.

1
  • I searched SO initially and found no good answers which are Ubuntu specific.
    – Manu
    May 8, 2011 at 14:40

8 Answers 8

2

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.

2
1

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.

2
  • 1
    Netbeans is awesome and is the closest equivalent of Visual Studio in Linux. But it feels rather heavy.
    – Manu
    May 8, 2011 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 :) May 8, 2011 at 15:33
1

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

1

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

0

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).

0
0

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

0
0

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

0

Emacs has autocompletion for most programming languages that it can handle. You may need to install the autocompletion package for your language of choice from Elpa, Melpa or Marmalde.

Install emacs using:

Sudo apt install emacs

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .