什么是最好的稳定编辑器?带有 gui & 的 c++ 编译器在linux下?

2022-01-17 00:00:00 editor compiler-construction c++

在 linux 下工作的带有 gui 的 C++ 的最佳稳定(编辑器和编译器)是什么?

What's the best stable (editor & compiler) for C++ with gui that works under linux?

注意:明确不寻找完整的 IDE.

Note: Explicitly not looking for a full IDE.

推荐答案

我喜欢用 Emacs 编写代码.它也为 gdb 提供了一个不错的 gui.我最近在处理一些代码片段时拍了一张快照(见下文,它看起来一点也不像 1980 年:).

I like to code with Emacs. It has a nice gui also for gdb. I recently made a snapshot while i worked on some code snippet (see below, it doesn't look like 1980 at all :).

也就是说,还有很多其他优秀的 IDE.我喜欢 Eclipse 用于 Java 开发,听说它也有一个不错的 C++ 插件 (CDT).Netbeans 最近也适用于 C++.KDevelop,一个支持多种语言的 KDE IDE,目前正在为 KDE4 重写:KDevelop 博客.看起来很有希望.还有一些其他的我无法告诉你它们是怎样的,因为我没有测试过它们,包括 Anjuta(用于 Gnome 桌面)和 Code::Blocks(编写使用 wxWidgets 它是跨平台的).如果您想要的只是编译器的 GUI 和符号浏览器,您还可以使用 geany,速度非常快,包括一个嵌入式终端,如 KDevelop.

That said, there are a lot of other fine IDEs. I like Eclipse for Java development, and heard it has a nice C++ plugin too (CDT). Netbeans also works for C++ since recently. KDevelop, an IDE for KDE supporting many languages, is currently being rewritten for KDE4: KDevelop Blog. Looks promising. Then there are some others where i cannot tell you how they are since i've not tested them, including Anjuta (for the Gnome desktop) and Code::Blocks (written with wxWidgets it's quite cross-platform). If all you want is a GUI for the compiler and a symbol browser, you could also use geany, which is very fast and includes an embedded terminal like KDevelop.

所有这些都有其起伏.最好尝试一下,然后再决定.从稳定性来看,我发现 Emacs 很稳定,从不崩溃,Eclipse 也很成熟.Netbeans 获得第三名.它有时会挂起,但总的来说它也很成熟.KDevelop 喜欢(ed)时不时崩溃,但在这方面取得了很大进展.尤其是 3.5 版本确实向前迈出了一大步,感觉比之前的任何版本都成熟.

All of these have their ups and downs. Best try each out and then decide. From the stability point of view, i've found Emacs is very stable and never crashes, Eclipse is also very mature. Netbeans gets the third place. It sometimes hangs but overall it's also quite mature. KDevelop likes(ed) to crash from time to time, but big progress was made in this regard. Especially version 3.5 did make a big step forward and felt more mature than any version before.

Emacs 编辑一些代码:

Emacs editing some code:

Emacs 调试会话:

Emacs debug session:

相关文章