我想把我的编程视野扩展到Linux。一个好的、可靠的基本工具集很重要,还有什么比IDE更基本呢?

我可以找到这些SO主题:

轻量级IDE linux和 你使用什么工具来开发 Linux上的c++应用程序?

我并不是在寻找轻量级IDE。如果一个IDE值那么多钱,我就会为它付费,所以它不一定是免费的。

我的问题是:

Linux有什么好的c++编程IDE ?

最小值是相当标准的:语法高亮显示、代码完成(如智能感知或其Eclipse对应版本)和集成调试(例如basic 断点)。

我自己也搜索过,但是有太多了,几乎不可能手工区分好的和坏的,特别是对于像我这样在Linux中几乎没有c++编程经验的人来说。我知道Eclipse支持c++,而且我真的很喜欢Java的IDE,但是它对c++有什么好处吗?还有更好的吗?

第二篇文章实际上有一些很好的建议,但我遗漏的是,究竟是什么让建议的IDE对用户这么好,它的(缺点)优势是什么?

也许我的问题应该是:

根据您的经验,您建议使用哪种IDE,为什么?


当前回答

我不想重复答案,但我想我可以再补充一点。

Slickedit是一个优秀的IDE。

It supports large code-bases well without slowing down or spending all its time indexing. (This is a problem I had with eclipse's cdt). Slickedit's speed is probably the nicest thing about it, actually. The code completion works well and there are a large amount of options for things like automatic formatting, beautification and refactoring. It does have integrated debugging. It has plug-in support and fairly active community creating them. In theory, you should be able to integrate well with people doing the traditional makefile stuff, as it allows you to create a project directly from one, but that didn't work as smoothly as I would have liked when I tried it. In addition to Linux, there are Mac and Windows versions of it, should you need them.

其他回答

If you like Eclipse for Java, I suggest Eclipse CDT. Despite C/C++ support isn't so powerful as is for Java, it still offers most of the features. It has a nice feature named Managed Project that makes working with C/C++ projects easier if you don't have experience with Makefiles. But you can still use Makefiles. I do C and Java coding and I'm really happy with CDT. I'm developing the firmware for a embedded device in C and a application in Java that talks to this device, and is really nice to use the same environment for both. I guess it probably makes me more productive.

我真的建议使用代码块。它不像Eclipse那么沉重,而且它有Visual Studio项目支持。

我很高兴你和vim解决了问题。但是我不得不说,我对您已经“非常喜欢Eclipse for Java”感到有点困惑,这意味着您已经熟悉它的工作原理了。在这种情况下,为什么不在c++中也使用它呢?CDT满足您提到的所有要求。

vim编辑器+ g++编译器(GNU c++) + gdb -可能会帮助你

对这个问题有一个快速的跟进…

自从我开始使用Vim作为我的主要“GUI”已经有一个月了 在Linux下编程c++的工具。首先是学习 曲线确实有点陡,但过了一段时间,随着 正确的选项打开和脚本运行我真的 掌握诀窍了!

我喜欢如何塑造Vim以满足您的需求; 只需添加/更改键映射,Vim就变成了一个 高效的“IDE”。

在Linux上构建和编译c++程序的工具链是 也很直观。Make和g++是你需要的工具 使用。

调试器ddd并不是真的那么好,但是 也许是因为我还没有时间去掌握它 正常。

所以对于那些正在或正在寻找一个好的c++ IDE的人来说 Linux,就像我一样,你最好的赌注在于标准 Linux本身(Vim, g++, ddd)和你 真的应该至少尝试使用它们,然后再寻找 sonething别的……

最后但并非最不重要的,我真的想感谢康拉德 他的回答是,它真的帮我找到了自己的路 Linux开发环境,谢谢!

我也不会结束这个问题,所以大家可以 React或甚至添加新的建议或添加到 已经是很好的答案了……