用于 C++ 的 Netbeans 或 Eclipse? [英] Netbeans or Eclipse for C++?

查看:31
本文介绍了用于 C++ 的 Netbeans 或 Eclipse?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我目前正在从事一个宠物项目,需要在 Windows、Mac、Linux 和 Solaris 上进行 C++ 开发,我已经将范围缩小到 Netbeans 和 Eclipse,所以我想知道哪个更可靠C++ 编辑器.我只需要可靠的编辑、模板代码和外部库的良好自动完成以及项目文件管理,构建工具是外部的,所以这里与我的比较无关.

I'm currently working on a pet project and need to do C++ development on Windows, Mac, Linux, and Solaris, and I've narrowed it down to Netbeans and Eclipse, so I was wonderig which is more solid as a C++ editor. I just need solid editing, good autocompletion for templated code ad external libraries, and project file management, the build tools are external, so thats irrelevant here, for my comparison.

因此哪个是更好的选择?

Thus which is a better choice?

注意:我知道我应该使用 emacs 或 vim,但问题是,至少我的理论是,我是左撇子,所以我更多地使用大脑的右侧(设计、创造力)而不是左侧方面(逻辑,内存),所以我只是不能使用 emacs 或 vim,我的大脑根本不兼容,我也尝试了很多次,甚至使用 emacs 几个月但它让我发疯......

Note: I know I should be using emacs or vim, but the issue is, my theory at least, that I'm left handed, so I use my right side (design,creativity) of the brain more than the left side (logic, memory), so I just simply cannot use emacs or vim, my brain simply isn't compatible, I tried them many times too, even used emacs for a few months but it drove me crazy...

谢谢

推荐答案

我没用过 NetBeans,但 Eclipse CDT(C 开发工具,包括 C++),尤其是最新版本的,真的非常好:

I haven't used NetBeans, but Eclipse CDT (C Developer Tools, which includes C++), especially with the latest version, is really quite excellent:

>

  • 语法检查和拼写检查
  • 语法高亮区分库调用和函数调用以及本地变量和成员变量,甚至应用于#ifdef 输出的代码
  • 宏扩展可以让您逐步完成每个级别的宏应用程序,甚至可以显示非常复杂的 Boost 预处理器宏的最终结果
  • 动态更新以显示您在文件中的位置的文件和类大纲视图.(我使用的商业 IDE 无法做到这一点.)
  • 强大、灵活的查找/替换和在文件中查找功能,具有完整的 Perl 风格的正则表达式支持.它还应该能够在文件中进行 C/C++ 查找,可以根据语言语义进行搜索(例如,只查找引用,而不是声明),尽管这有时对我不起作用.
  • 自动跟踪 TODO 和其他评论标签
  • 鼠标悬停提示,显示变量或函数的确切声明,包括任何注释,而不仅仅是变量或函数的声明位置.(同样,我使用的商业 IDE 无法做到这一点.)
  • 通过插件支持 Subversion、Doxygen 等
  • 一些重构支持 - 重命名、提取常量、提取函数等
  • 代码重新格式化,基于用户可定义的代码样式
  • 您曾专门询问过它的编辑器;Eclipse 编辑器已经足够好了,当我不需要商业 IDE 的表单设计器时,我会优先使用它而不是商业 IDE 来用于我们的产品.

    You'd asked specifically about its editor; the Eclipse editor is good enough that I use it in preference to the commercial IDE for our product whenever I don't need the commercial IDE's forms designer.

    Eclipse 的调试器集成(使用 gdb)可以忍受但不是很好,并且它的内存使用率很高.一些功能(如 C/C++ Find in Files)无法可靠地工作或无缘无故地需要重新索引(这很耗时),但在这方面,最新版本似乎更可靠.

    Eclipse's debugger integration (using gdb) is tolerable but not great, and its memory usage is high. A few features (like the C/C++ Find in Files) don't work reliably or require reindexing (which is time consuming) for no apparent reason, but the latest version seems more reliable in this regard.

    使用过 NetBeans 的人可以填写它的比较吗?

    Can someone who's used NetBeans fill in how it compares?

    这篇关于用于 C++ 的 Netbeans 或 Eclipse?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆