Eclipse Plugin for C++ with all functionality available for Java - c++

I recently installed the CDT plugin for C++ development in Eclipse. It provides useful features for building and debugging. However it does not have the following features available for Java:
Auto-complete of library functions or even user defined functions, variables etc.
Syntax checking as you type. For e.g., if I miss a ';' at end of line, it is not highlighted.
In short I'm looking for a plugin or someway to customize CDT to have the same support Eclipse provides for Java code.
Clarification - All the features I'm looking for are related to C++ code development.

CDT comes only with C and C++ tools. You need to also install the Java tools, like this:
Choose: Help | Install New Software...
In the "Works with:" drop-down box, choose: --All Available Sites--
Select: Eclipse Java Development Tools

Related

Adding C/C++ language to Eclipse Oxygen IDE for Java Developers

I'm running Eclipse Oxygen.1 IDE for Java Developers 64 bit and I want to add the C/C++ language to it so I can write and compile code for my C Language class using only one IDE. When I go to install new software am I supposed to be installing the development tools for under the programming language tab or from the CDT tab or both? The tools under the Programming Language tab are version 9.3.2 and the tools under CDT tab are version 9.3.0. I'm confused as to which ones I'm supposed to install. Also if anyone could help me with the installation of MinGW. I'm running Windows 10 on a 64 bit operating system. And I'm not sure as to how I can get the latest version of MinGW for 64 bit OS. Any help is appreciated. Thanks!
You can have a combined IDE. I use one that combines the Eclipse SDK, including Java and a bunch of other things all in one. It's a bit clunky to do but can be done. Just go to the Help -> Install New Software... menu item and bring up the install dialog.
First install one of them, Java or C/C++. Then after launching it, select the "Luna - http://download.eclipse.org/releases/oxygen" item in the "Work with:" selector. Then find the other IDE components you would like in the list and install it.
I had Oxygen with java and pydev but experienced great difficulty adding cdt yesterday. I have some good reasons for keeping Oxygen instead of upgrading (older code and even OS compatibility since I'm still running High Sierra, again there are reasons for doing that). One key is finding the url given above download.eclipse.org/releases/oxygen . However, my install would still not work, for some unknown reason.
Here is the important part of my comment. Installs and updates can take forever if you don't uncheck the box on the install page which says this:
Contact all update sites during install to find required software
It is a known bug, that it is checked by default, but never to be fixed. https://bugs.eclipse.org/bugs/show_bug.cgi?id=340298
Also this bug https://bugs.eclipse.org/bugs/show_bug.cgi?id=340298 was applied to cdt 9.3 if you get the pty error trying to compile.

Eclipse CDT documentation on C++ autocomplete

I was trying to set up my development environment on Eclipse CDT for C++ and although the auto-complete is working (it finds classes like vector and such) it shows no documentation on C++ stuff, only C stuff (fopen, fclose, malloc) has documentation appearing on the auto-complete.
Some notes:
I'm using Linux Mint and Eclipse Kepler Service Release 1 Build id: 20130919-0819
I had to manually install g++ on my Linux. I used 'sudo apt-get install g++-4.7' to install it
I had to manually place "/usr/include/c++/4.7.3/" on the GCC C++ Compiler Includes in the Tool Settings in the project properties to get it to compile.
Any ideas on how to get the documentation in there?
The help on C is provided by Libhover plugin. The developers tried to support C++ but seems these efforts did not get much traction.
C++ hover is actually installed by default in CDT. If not, you can install it manually (at CDT site look for "Plugins for C/C++ library hover help." and "Plugins for creating hover help from installed C devhelp documentation").
However, it is not enough. To get hovering help similar to C documentation you have to generate Doxygen XML for your library, e.g. for STL. Details are provided in hover documentation

C++ IDE Eclipse

I am looking for a C++ IDE, typically for debugging purpose. In particular, where I can navigate in source code; say method definition, member declaration etc.
I am a Java developer and use Eclipse. I create J2ME project in Eclipse, build it and finally deploy it at same place. At the time of debugging I can easily trace out what I am looking for.
For C/C++ support I installed plug-in "Eclipse C/C++ Development Tools".
After installing above plug-in, C/C++ code open with font/style/color...but not able to navigate :(
Please help me.
Thanks,
Amit
the cdt plugin from eclipse works fine for me. Perhaps you should update to the latest version and make sure you change your perspective to c++.
Another great c++ ide is qtcreator.

Additional Refactoring for Eclipse CDT

Is there any way to configure or are there any 3rd party plug-ins available for Eclipse CDT (any version) that provide a rich set of refactorings? My refactoring menu only provides the following in Eclipse Indigo CDT:
Rename
Extract Constant
Extract Local Variable
Extract Function
Toggle Function Definition
Hide Method...
I am looking for something with the richness of either the Java refactorings:
http://help.eclipse.org/galileo/index.jsp?topic=/org.eclipse.jdt.doc.user/concepts/concept-refactoring.htm
Or something like what DevExpress Refactor Pro offers:
http://www.devexpress.com/Products/Visual_Studio_Add-in/Refactoring/
Note that the DevExpress plug-in is not compatible with Eclipse. I am more than willing to pay for a good 3rd party plug-in (it just needs to support C++ in Eclipse).
Most of the refactoring features in Eclipse CDT are developed by people working and studying at the HSR Hochschule für Technik in Rapperswil Switzerland. There are students working on new refactorings and enhancements. After they had been reviewed they will be integrated into the official CDT.
For more information of the ongoing development get in contact with the leader of this projects Peter Sommerlad at the IFS.
Beside from this projects I think there is no other plugin/extension on the CDT platform.
I miss the additional features, too, but I guess, they are currently not available as eclipse plugins: at least I did not found any, except for announcements.
C++ is hard to parse.
Is there any way to configure or are there any 3rd party plug-ins
available for Eclipse CDT (any version) that provide a rich set of
refactorings?
Sure, it's possible. For example:
http://www.eclipse.org/articles/article.php?file=Article-Unleashing-the-Power-of-Refactoring/index.html
As far as finding exactly what you're looking for (either commercial or open source software) - and finding it for Eclipse (as opposed to simply purchasing a different IDE) - well, that's "iffy". For example, I make heavy use of Embarcadero Delphi at work. It's refactoring capabilities run RINGS around Visual Studio. Visual Studio, in turn, is far better than the default Eclipse. But hey - I use "vi" and a makefile whenever possible, so it's no big deal.
Suggestion:
Try an eval version of a major vendor's C++ compiler, and see where it takes you. Two suggestions:
Intel
http://software.intel.com/en-us/articles/intel-compilers/
IBM
http://www.ibm.com/developerworks/downloads/

Using C++ with Eclipse

I'm figuring out that there's two ways of writing C++ in Eclipse: either download the Eclipse IDE for C/C++ Developers or download the regular Eclipse for java and add the CDT plugin. What is the difference between these two? (Note that I'm already exstensively using Eclipse for Java) Thank you
The C++ tools end up the same so depends if you use Eclipse for other things.
If for other things then I would start with the more complex setup e.g. if you do Java J2EE I would download the Eclipse J2EE then add the C++ tools
If just C++ start with the Eclipse C++
I also found using the Yoxos/Eclipse Source packaging easier to download extra packages. (unless you need the absolute latest patch)
edit:
Sorry I did not read the question fully I have given the general answer. However as you have eclipse working and setup already and if you are happy then just download the C++ plugins. Note I have a separate workspace for java and C++ helps as you will want different perpecives etc and also cuts down on the projects in the explore rs/
Or use EasyEclipse for C/C++ and get a few other useful tools pre-integrated too.