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

我可以找到这些SO主题:

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

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

我的问题是:

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

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

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

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

也许我的问题应该是:

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


当前回答

作为一个老UNIX用户,我总是使用Emacs。但这有一个相当陡峭和漫长的学习曲线,所以我不确定我是否可以向新手推荐它。

对于Linux来说,真的没有一个“好的”IDE。Eclipse对于C/ c++不是很好(CDT正在改进,但还不是很有用)。其他的则缺少您要寻找的所有功能。

了解所有单独的工具(gcc、make、gdb等)是如何工作的真的很重要。这样做之后,您可能会发现Visual Studio做事的方式非常有限。

其他回答

我建议您阅读UNIX编程的艺术。它将引导您使用环境作为IDE。

块代码: Eclipse CDT

很快您就会发现ide是不够的,无论如何您都必须学习GCC工具链(这并不难,至少要学习基本功能)。但在我看来,使用ide减少过渡痛苦并没有坏处。

SlickEdit. I have used and loved SlickEdit since 2005, both on Windows and on Linux. I also have experience working in Visual Studio (5, 6, 2003, 2005) and just with Emacs and command line. I use SlickEdit with external makefiles, some of my teammates use SlickEdit, others use Emacs/vi. I do not use the integrated debugger, integrated version control, integrated build system: I generally find too much integration to be real pain. SlickEdit is robust (very few bugs), fast and intuitive. It is like a German car, a driver's car.

最新版本的SlickEdit似乎提供了许多我不感兴趣的功能,我有点担心这个产品在未来会变得臃肿和稀释。目前(我使用V13.0)它很棒。

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 CDT和Qt Creator(用于Qt应用程序)。

这是我的偏好。这是一个很有启发性的问题,有多少开发者就有多少答案。:)