用于 C 和 C++ 开发的 Eclipse 的替代品?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/5358252/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-28 17:59:16  来源:igfitidea点击:

Alternative to Eclipse for C and C++ development?

c++ceclipseidecross-platform

提问by ?imon Tóth

I have been using Eclipse for C and C++ development for some time. Unfortunately Eclipse has it's faults (speed, the crappy integrated console, and some bugs that pop up from time to time).

一段时间以来,我一直在使用 Eclipse 进行 C 和 C++ 开发。不幸的是,Eclipse 有它的缺点(速度、糟糕的集成控制台,以及不时出现的一些错误)。

For C++ development Qt Creator is a very good choice, but I need something for both C and C++.

对于 C++ 开发 Qt Creator 是一个非常好的选择,但我需要 C 和 C++ 的东西。

I don't really need the integration parts of the IDE (I don't need an integrated project manager, compiler or debuger). What I need is code navigation. Eclipse provides a great feature "callgraph for structure elements" that is unparalleled when I need to modify big crummy code bases (which is what I do most of the time).

我真的不需要 IDE 的集成部分(我不需要集成的项目管理器、编译器或调试器)。我需要的是代码导航。Eclipse 提供了一个很棒的功能“结构元素的调用图”,当我需要修改大而笨拙的代码库(这是我大部分时间所做的)时,它是无与伦比的。

Code completion and at least some integration documentation (doxygen, generic comments before functions, system documentation) is an absolute necessity.

代码完成和至少一些集成文档(doxygen、函数前的通用注释、系统文档)是绝对必要的。

Oh and the IDE has to be crossplatform.

哦,IDE 必须是跨平台的。

Is there something other then Eclipse?

除了 Eclipse 之外还有其他东西吗?

采纳答案by SpotsWood

Have you tried NetBeans? There is a plugin for C/C++ development.

您是否尝试过 NetBeans?有一个用于 C/C++ 开发的插件。

回答by jonsca

Check out Code::Blocksas an option. Much lighter weight, updated constantly (via SVN nightlies), many of the same features as Eclipse. C::B has Doxyblocks, a plugin for Doxygen.

查看Code::Blocks作为选项。重量更轻,不断更新(通过 SVN nightlies),许多与 Eclipse 相同的功能。C::B 有 Doxyblocks,一个 Doxygen 插件。

回答by Christopher Smith

Wow. I can't believe I'm the first person pointing to Emacs. ;-)

哇。我不敢相信我是第一个提到 Emacs 的人。;-)

回答by Dirk Eddelbuettel

I like qtcreatorwhich you can use without writing against Qt.

我喜欢qtcreator,您无需针对Qt编写即可使用它。

It is modern, nicely looking, cross-platform (ie on Windows, OS X and Linux), maintained / extended at a good clip, integrated with other tools (debuggers, revision control, ...). Oh, and it is free.

它是现代的、漂亮的、跨平台的(即在 Windows、OS X 和 Linux 上),以良好的剪辑维护/扩展,与其他工具(调试器、修订控制等)集成。哦,它是免费的。

回答by B?ови?

Take a look into KDevelop4. It is quite good

看看 KDevelop4。很好

回答by Kiril Kirov

Hm, I'm kinda surprised, that noone mentioned SlickEdit.

嗯,我有点惊讶,没有人提到SlickEdit

I think everyone, who has ever used Visual Studio and who has migrated to Linux programming, has had this problem - what to use for C++ dev. Now I use SlickEdit and I'm pretty satisfied.

我想每个曾经使用过 Visual Studio 并迁移到 Linux 编程的人都遇到过这个问题——C++ 开发者该用什么。现在我使用 SlickEdit,我很满意。

Here's a short quote from the official web-site:
Welcome to SlickEdit 2010. SlickEdit 2010 is a cross-platform, multi-language code editor that gives programmers the ability to code in over 40 languages on 7 platforms. This latest version builds on the company's 22 years of experience in enabling developers and development teams to create, navigate, modify, build, and debug code faster and more accurately

以下是官方网站的简短引述:
Welcome to SlickEdit 2010. SlickEdit 2010 is a cross-platform, multi-language code editor that gives programmers the ability to code in over 40 languages on 7 platforms. This latest version builds on the company's 22 years of experience in enabling developers and development teams to create, navigate, modify, build, and debug code faster and more accurately

Hereyou could see what features are supported by language (see that C/C++ has all possible features)

在这里您可以看到语言支持哪些功能(请参阅 C/C++ 具有所有可能的功能)

HereYou can see some of the cool features (and they are really cool) + examples + some demos (video).

在这里您可以看到一些很酷的功能(它们真的很酷)+ 示例+ 一些演示(视频)。

Hereis a list with the newest features.

是包含最新功能的列表。

Also, the debugger is pretty nice, it's kinda Visual Studio's debugger - easy to use and powerful (not as VS's of course, but it's still nice).

此外,调试器非常好,它有点像 Visual Studio 的调试器 - 易于使用且功能强大(当然不像 VS,但它仍然很好)。

You can configure SlickEdit however you like. Yep, the options are too many, it seems too confusing, but this gives you the opportunity to change anything.

您可以随意配置 SlickEdit。是的,选项太多了,看起来太混乱了,但这给了你改变任何东西的机会。

The problem is, that it is notfree (in a legal way, at least.. ;) ), but you could download a trial to try it. I've tried some other products, and this one is the best to me.

问题是,它不是免费的(至少以合法的方式......;)),但您可以下载试用版来试用它。我试过其他一些产品,这个对我来说是最好的。

I'd suggest you to try it, at least (:

我建议你尝试一下,至少 (:

回答by cuerty

I currently use Vim with the NERD Tree, tag list and aplugins. I'm pretty happy with the workflow using those plugins provide.

我目前使用的Vim的NERD树,标签列表和一个插件。我对使用这些插件提供的工作流程感到非常满意。

回答by jale

Try with codelite

尝试使用codelite

It has a great codecompletion (better than eclipse)

它有一个很好的代码完成(比 eclipse 好)

It is small and fast and run in windows and linux

它体积小,速度快,可在 windows 和 linux 中运行

Other options are, qtcreator, kdevelop, codeblocks and ultimate++

其他选项包括 qtcreator、kdevelop、codeblocks 和 Ultimate++

回答by etipici

I think Emacscould be a proper candidate to satisfy your requirements.

我认为Emacs可能是满足您要求的合适人选。

It can be something like a simple text editor or a fully integrated environment as you like.

它可以是简单的文本编辑器,也可以是您喜欢的完全集成的环境。

You can add special modes created by Emacs community for any programming language and features like code completion or any kind of documentation. And there is a lot of alternatives of these modes. So you can choose.

您可以为任何编程语言和功能(如代码完成或任何类型的文档)添加由 Emacs 社区创建的特殊模式。这些模式有很多替代方案。所以你可以选择。

You can customize almost everything about Emacs, like keyboard shortcuts that can be for any purpose you can imagine or indentations and colors, and take your customizations with one file to everywhere you like. (The .emacsfile)

您可以自定义有关 Emacs 的几乎所有内容,例如可以用于您可以想象的任何目的的键盘快捷键或缩进和颜色,并通过一个文件将您的自定义带到您喜欢的任何地方。(.emacs文件)

A lot of tools like gdb or grep or svn are or can be integrated in emacs so you can use them in a more efficent way than using from command line.

许多工具,如 gdb 或 grep 或 svn 已经或可以集成到 emacs 中,因此您可以以比从命令行使用更有效的方式使用它们。

But it has downsides. Using emacs requires much more Linux knowledge than any other graphical environments. (I dont know how it feels using emacs in Windows ) It is hard to learn how to use Emacs and how to add features. So it is not suitable for anyone who doesn't like to get dirty.

但它有缺点。与任何其他图形环境相比,使用 emacs 需要更多的 Linux 知识。(不知道在Windows下使用emacs是什么感觉) 很难学会Emacs的使用方法和添加功能的方法。所以不适合不喜欢脏的人。

回答by Joshua

Try Source Navigator NG. Helps see relationships among classes in class hierarchies, etc. Code browser, as in, you can go back to where you were. Give yourself 5 hours on this and see how it takes you. It's helped me. http://sourcenav.berlios.de/

试试 Source Navigator NG。帮助查看类层次结构等中的类之间的关系。代码浏览器,如在,您可以返回到原来的位置。给自己 5 个小时的时间,看看它是如何完成的。它帮助了我。 http://sourcenav.berlios.de/