Netbeans或Eclipse for C ++? [英] Netbeans or Eclipse for C++?

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

问题描述

我目前正在开发一个宠物项目,需要在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 Developer Tools,包括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' out out

  • 宏扩展,可以引导您完成每个级别的宏应用程序,或显示最终结果,即使是非常复杂的Boost预处理程序宏

  • 动态更新的文件和类大纲视图,以显示您在文件中的位置。

  • 强大,灵活的查找/替换和在文件中查找功能,具有完整的Perl风格的正则表达式支持。它也应该能够做一个C / C ++在文件中查找,可以基于语言语义搜索(例如,只找到引用,而不是声明),虽然这有时不适合我。

  • 自动跟踪TODO和其他注释标签

  • 鼠标悬停提示,显示包含任何注释的变量或函数的确切声明,而不仅仅是声明变量或函数的位置。

  • 通过Subversion,Doxygen等插件支持。

  • 一些重构支持 - 重命名,提取常量,提取函数,其他几个

  • 基于用户可定义的代码样式进行代码重新格式化

  • Syntax checking and spell checking
  • Syntax highlighting that distinguishes between library calls and your function calls and between local and member variables and is even applied to code that's #ifdef'ed out
  • Macro expansion that can step you through each level of macro application or show the final result even of very complex Boost Preprocessor macros
  • A file and class outline view that updates dynamically to show where you are in a file. (Commercial IDE's I've used fail to do this.)
  • Powerful, flexible Find/Replace and Find in Files features with complete Perl-style regex support. It's also supposed to be able to do a C/C++ Find in Files that can search based on language semantics (e.g., only find references, not declarations), although this sometimes doesn't work for me.
  • Automatic tracking of TODO and other comment tags
  • Mouseover tips that show the exact declaration of a variable or function, including any comments, instead of just where a variable or function is declared. (Again, commercial IDE's I've used fail to do this.)
  • Support via plugins for Subversion, Doxygen, etc.
  • Some refactoring support - rename, extract constant, extract function, a few others
  • Code reformatter, based on user-definable code styles

你会特别问他的编辑器; 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?

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

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