C++ Ide For Linux

C++ IDE for Linux?

Initially: confusion

When originally writing this answer, I had recently made the switch from Visual Studio (with years of experience) to Linux and the first thing I did was try to find a reasonable IDE. At the time this was impossible: no good IDE existed.

Epiphany: UNIX is an IDE. All of it.1

And then I realised that the IDE in Linux is the command line with its tools:

  • First you set up your shell

    • Bash, in my case, but many people prefer
    • fish or
    • (Oh My) Zsh;
  • and your editor; pick your poison — both are state of the art:

    • Neovim2 or
    • Emacs.

Depending on your needs, you will then have to install and configure several plugins to make the editor work nicely (that’s the one annoying part). For example, most programmers on Vim will benefit from the YouCompleteMe plugin for smart autocompletion.

Once that’s done, the shell is your command interface to interact with the various tools — Debuggers (gdb), Profilers (gprof, valgrind), etc. You set up your project/build environment using Make, CMake, SnakeMake or any of the various alternatives. And you manage your code with a version control system (most people use Git). You also use tmux (previously also screen) to multiplex (= think multiple windows/tabs/panels) and persist your terminal session.

The point is that, thanks to the shell and a few tool writing conventions, these all integrate with each other. And that way the Linux shell is a truly integrated development environment, completely on par with other modern IDEs. (This doesn’t mean that individual IDEs don’t have features that the command line may be lacking, but the inverse is also true.)

To each their own

I cannot overstate how well the above workflow functions once you’ve gotten into the habit. But some people simply prefer graphical editors, and in the years since this answer was originally written, Linux has gained a suite of excellent graphical IDEs for several different programming languages (but not, as far as I’m aware, for C++). Do give them a try even if — like me — you end up not using them. Here’s just a small and biased selection:

  • For Python development, there’s PyCharm
  • For R, there’s RStudio
  • For JavaScript and TypeScript, there’s Visual Studio Code (which is also a good all-round editor)
  • And finally, many people love the Sublime Text editor for general code editing.

Keep in mind that this list is far from complete.


1 I stole that title from dsm’s comment.

2 I used to refer to Vim here. And while plain Vim is still more than capable, Neovim is a promising restart, and it’s modernised a few old warts.

IDE for C/C++ programming in Linux

My personal favorite is KDevelop. I've never used its debugger (I use straight gdb) but its code completion and documentation viewers are excellent. One of the best you'll every find. Also, it's not written in Java but C or C++, so it runs faster on worse systems.

What is the best IDE for C Development / Why use Emacs over an IDE?

I started off by using IDEs, Microsoft or not. Then, while working on QNX some long time ago, I was forced to do with a text editor + compiler/linker. Now I prefer this simple combination––a syntax highlighting editor + C compiler and linker cli + make––to any IDEs, even if environment allows for them.

The reasons are, for me:

  1. it's everywhere. If you program in C, you do have the compiler, and usually you can get yourself an editor. The first thing I do––I get myself nedit on Linux or Notepad++ on Windows. I would go with vi, but GUI editors provide for a better fonts, and that is important when you look at code all day

  2. you can program remotely, via ssh, when you need to. And it does help a lot sometimes to be able to ssh into the target and do some quick things there

  3. it keeps me close to CLI, preferably UNIX/Linux CLI. So all the commands are on my fingertips, and when I need them I don't have to go read a reference book. And UNIX CLI can do things IDEs often can't––because their developers didn't think you'd need them

  4. most importantly, it is very much like seeing the Matrix in raw code. I operate files, so I'm forced to keep them manageable. I'm finding things in my code manually, which makes me keep it simple and organized. I do Config Management explicitly, so I know when I'm synced and how. I know my Makefiles because I write them, and they only do what I tell them to

    (if you wonder if that works in "really big projects"––it does work, and the bigger the project the more performance it gains me)

  5. when people ask me to look at their code, I don't have to learn the IDE they use

IDE for debugging 'C source in linux

  • Code::Blocks
  • Anjuta
  • KDevelop
  • Or check on StackOverflow

C++ IDE for Linux?

Initially: confusion

When originally writing this answer, I had recently made the switch from Visual Studio (with years of experience) to Linux and the first thing I did was try to find a reasonable IDE. At the time this was impossible: no good IDE existed.

Epiphany: UNIX is an IDE. All of it.1

And then I realised that the IDE in Linux is the command line with its tools:

  • First you set up your shell

    • Bash, in my case, but many people prefer
    • fish or
    • (Oh My) Zsh;
  • and your editor; pick your poison — both are state of the art:

    • Neovim2 or
    • Emacs.

Depending on your needs, you will then have to install and configure several plugins to make the editor work nicely (that’s the one annoying part). For example, most programmers on Vim will benefit from the YouCompleteMe plugin for smart autocompletion.

Once that’s done, the shell is your command interface to interact with the various tools — Debuggers (gdb), Profilers (gprof, valgrind), etc. You set up your project/build environment using Make, CMake, SnakeMake or any of the various alternatives. And you manage your code with a version control system (most people use Git). You also use tmux (previously also screen) to multiplex (= think multiple windows/tabs/panels) and persist your terminal session.

The point is that, thanks to the shell and a few tool writing conventions, these all integrate with each other. And that way the Linux shell is a truly integrated development environment, completely on par with other modern IDEs. (This doesn’t mean that individual IDEs don’t have features that the command line may be lacking, but the inverse is also true.)

To each their own

I cannot overstate how well the above workflow functions once you’ve gotten into the habit. But some people simply prefer graphical editors, and in the years since this answer was originally written, Linux has gained a suite of excellent graphical IDEs for several different programming languages (but not, as far as I’m aware, for C++). Do give them a try even if — like me — you end up not using them. Here’s just a small and biased selection:

  • For Python development, there’s PyCharm
  • For R, there’s RStudio
  • For JavaScript and TypeScript, there’s Visual Studio Code (which is also a good all-round editor)
  • And finally, many people love the Sublime Text editor for general code editing.

Keep in mind that this list is far from complete.


1 I stole that title from dsm’s comment.

2 I used to refer to Vim here. And while plain Vim is still more than capable, Neovim is a promising restart, and it’s modernised a few old warts.

Good C++ Debugging/IDE Environment for Linux?

Although many people think of it as a Java IDE, he could try NetBeans. I've used it on Windows for C and C++ development without a problem, and I know NetBeans is supported on Linux, so it would be worth a shot.

It looks like most of the features he wants are included in the C/C++ development toolkit, including integration with GDB, a profiler, and more.

struggling with c++ IDE's on linux

maybe you can try qt creator, it designed for developing QT application, however you can use it for other c++ program. It supports cmake.

Best C++ development environment in Linux

I definitely recommend Eclipse and the CDT plugin. Emacs would be my preferred choice if you only need a good editor and not a full IDE.

I use Eclipse almost every day on Linux, mostly for C++ programming these days. The CDT plugin is really good because it is very well integrated with the g++ compiler and the gdb debugger. On top of that, the really strong feature of CDT is the code indexer - i.e. what Microsoft calls "intellisense" for Visual Studio. The CDT Indexer is so sophisticated it is almost like a compiler, in that it really understands your code as you type it. Very often it allows me to find errors even before I build my project. Also Eclipse can handle very large source trees, especially if you run it with a 64-bit JVM.

Eclipse is a great IDE with a lot of users, and if you don't know any other IDE you may want to start with it. Because it supports many languages and has so many tools, even if you switch to another project with different technologies you can still keep your IDE. So you only need to learn one tool (the same can be said for Emacs).



Related Topics



Leave a reply



Submit