Search code examples
c++linuxubuntucode-editor

Code editor in Linux


What would be a good code editor for Linux (I use Ubuntu 14.04 LTS) which combines:

  • auto completion for c/c++ (more is better)
  • syntax highlighting
  • recognizing include commands and getting the code from the headers
  • not an IDE, rather something light
  • simple installation

I am not a big expert in Linux and, for example, it got too expensive for me to install SublimeClang plugin. Another thing is that I want to write the code and then run the compiler commands myself, not just by pushing a button, which is common in IDEs. Also, I don't like VIM.


Solution

  • If you do not want an IDE then I suggest you install Wine and then install Notepad++.

    I suggest Eclipse CDT. It is a C++/C IDE that is quite lightweight and does everything you've asked. Plus it has a compiler. The instillation is quite easy. Go to the software installer and search "Eclipse CDT" and then install "CPP"

    Another one, that is also an IDE but a little be more environmentally friendly is MonoC++

    Also, there are online editors, such as Ideone and CompileOnline