5

What's the best IDE for developing C / C++ on Ubuntu? I tried installing Eclipse but it seems like I need the eclipse-cdt package also. The problem is there is no such package, at least for Lucid. How do I proceed? I am not tied to Eclipse.

Gilles 'SO- stop being evil'
  • 807,993
  • 194
  • 1,674
  • 2,175
JoelFan
  • 1,317
  • 1
  • 12
  • 14

5 Answers5

6

The two most common suggestions you will hear are vim and emacs. Both are good programmable text-editors that are used by many developers. I am an occasional, amature programmer and an emacs user so here are some of the pros of using emacs:

  • Syntax Highlighting
  • Smart Code Navigation & Editing: c-mode allows you to quickly move between various sections of code or quickly comment large chucks of code.
  • In-browser Compilation: You are always a few keystrokes away from compiling your code.
  • Version control integration: Almost every major version control system is supported.
  • Debugging: GBD can be easily used from inside emacs.

This is really just scratching the surface of what you can do from inside emacs. The downside includes the learning curve, the amount of configuration that most people find necessary to do, and, depending on your hands, the key combinations. The nice thing is that the key combinations can be made a bit better by remapping CTRL and that once you have your basic emacs configuration you will likely only need the occasional modification. Here are some good resources if you are interested in getting into emacs:

Steven D
  • 45,310
  • 13
  • 119
  • 114
6

I'm a pretty hard-core Emacs user but still, for developing C++ I prefer Qt-Creator (don't be afraid because of the name, it works well for non-QT-projects) as Emacs lacks good project support and stable code completion

The pros:

  • Can import CMakeFiles.txt into an automatically created project
  • Best code completion you'll find on Linux, sometimes even better than Visual Stuudio when it comes to heavily templated code
  • Very good debugger integration
  • Available for all major platforms
  • Free (in both senses) software
  • version control software integration (SVN. Mercurial, git)
  • If you develop QT: Interface designer and more
fschmitt
  • 8,720
  • 35
  • 46
4

In addition to mentioned by others I would advice to look at:

  • Anjuta - Gnome IDE
  • KDevelop - KDE IDE
Maciej Piechotka
  • 16,578
  • 11
  • 57
  • 93
  • I'm surprised so many people are suggesting emacs and VIM. Sure those are fine, but IDEs have come a LONG way and anyone still using vim or emacs as a primary IDE isn't doing so because they're better. KDevelop is awesome. I highly recommend it. – Falmarri Oct 06 '10 at 20:32
  • 1
    I disagree. I am using emacs for everyday use. It depends what you need and what you expect from IDE (I'm not sure about vim but emacs is IDE). – Maciej Piechotka Oct 08 '10 at 08:19
3

Eclipse is a good choice, because one IDE to many language. In addition you can install vim plugin, etc. How to install c/c++: Menu: Help->Install New Software->Add http://download.eclipse.org/tools/cdt/releases/galileo

http://www.eclipse.org/cdt/

In addition, you should see: http://www.eclipse.org/linuxtools/downloads.php

rsajdok
  • 61
  • 2
1

QtCreator is great, KDevelop, Netbeans.

Vim is also great if you learn how to use it.

OneOfOne
  • 1,375
  • 9
  • 16