Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Netbeans or Eclipse for C++? [closed]

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?

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...

Thanks

like image 451
Robert Gould Avatar asked Nov 21 '08 11:11

Robert Gould


People also ask

Should I use Eclipse or NetBeans?

NetBeans is easier to learn and has more features out of the box than Eclipse, but Eclipse can handle larger projects and is more customizable. NetBeans and Eclipse are both wonderfully-designed Java integrated development environments (IDEs).

Is NetBeans good for C?

you can use codeblocks it is also a well and exceptionally good for c/c++.

Is Eclipse good for C programming?

Eclipse is a popular open-source IDE that you can use to develop C++ applications using Eclipse's C/C++ development tools. This IDE is multiplatform and can run on Windows, Linux, and macOS. It will allow you to debug and compile your code as well as get auto-completion for your code while editing.

Is NetBeans good for C and C++?

NetBeans C/C support lets you create C and C Application and Library projects with generated makefiles, as well as C and C++ projects with existing sources. You can build, run, and debug your project on the local host (the system from which you started the IDE) or on a remote host running a UNIX® operating system.


2 Answers

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

  • 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

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'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.

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

like image 53
Josh Kelley Avatar answered Oct 01 '22 04:10

Josh Kelley


I'm using Netbeans from time to time on Solaris and the latest (6.5) version is pretty neat. It has all the features that you need, perhaps autocompletion could work better, but I have a really bad code base so it might be the result of it. Keep in mind that you need strong machine for that, if it's your PC it's ok but Netbeans on a remote server (like I tried) is really slow unless you have a decent hardware. There are few simple refactorings for C++ with nice preview option, definitely worth a try.

You can get a whole Sun C++ pack from here: http://developers.sun.com/sunstudio/downloads/express/

like image 29
Nazgob Avatar answered Oct 01 '22 03:10

Nazgob