3

Ever since the debugger plugin for geany stopped working (see below), I am looking for an editor for C/C++ source files with the following features:

  • Code completion (i.e., Intellisense-like completion of variable and function names as well as parameters)
  • Basic debugging capabilities (start/stop debugger, step-by-step execution, evaluate variable values on mouse hover or in a separate window)

The editor should be as lightweight as possible. Eclipse, for example, has some nice features but it just too large in terms of disk space after installation. In case it is relevant, I am using Xubuntu (14.04) on one machine and an Ubuntu (14.04) Minimal installation with Xfce on another machine, for both of which I need a lightweight editor.

So far, I tried Code::Blocks, which is nice, but requires me to create a new project to enable debugging functionality, which is annoying. I just want to use my custom Makefile and my C files without any additional project files or output folders.

I previously used geany, which I really liked. However, since I set up my 14.04 machines, the debugger plugin crashes the whole application every time I want to use it. I even tried compiling the newest version of the plugin myself, but it still crashes, as confirmed also by others in the bug tracker. Furthermore, C++ code completion in geany has never been really good.

Are there any alternatives out there, preferably free and available via apt-get?

Thanks in advance Best regards Andreas

1 Answers1

3

You could give a try to the default text editor, GEdit (it looks pretty decent on Xfce with a gtk theme). The gedit-plugins package contains, among many others others:

  • Bookmarks
  • Bracket Completion
  • Code block comment/uncomment
  • File Browser
  • Session persistence
  • Embedded Terminal

To these you may add a few additional plugins:

As for debugging there is nothing but you can use gdb within the integrated terminal.

And of course, you'll have the Oblivion theme, the best coding theme ever produced.

Further reading:

gedit: Add Python / C++ Autocomplete Support

How to convert gEdit to gEdit++