Any editor that does autocompletion in Ubuntu?

13,326

Solution 1

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.

Solution 2

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

Solution 3

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.

Solution 4

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

Share:
13,326

Related videos on Youtube

Manu
Author by

Manu

Updated on September 18, 2022

Comments

  • Manu
    Manu over 1 year

    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.

    • Manu
      Manu almost 13 years
      I searched SO initially and found no good answers which are Ubuntu specific.
  • Manu
    Manu almost 13 years
    Netbeans is awesome and is the closest equivalent of Visual Studio in Linux. But it feels rather heavy.
  • Manu
    Manu almost 13 years
    Thanks a ton! Omni-completion along with smart autocompletion using tabs is a lifesaver!
  • Rafał Cieślak
    Rafał Cieślak almost 13 years
    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 :)
  • Sjlver
    Sjlver over 7 years
    If you're developing C, C++ or Python, YouCompleteMe is an amazing autocompleter for Vim.