Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How can I get Eclipse CDT to generate a C++ class constructor from data members?

I've recently started using Eclipse Kepler CDT. I'd like to be able to generate code for a class constructor, after having typed in the class data members. Using Eclipse to write Java development, I would do this by right-clicking and using the constructor generation entry in the Source sub-menu (Alt+Shift+S); writing C++, though, this functionality is not available... or is it?

like image 790
einpoklum Avatar asked Jul 15 '13 09:07

einpoklum


1 Answers

The feature is NOT in CDT yet.

I've been envying the Eclipse JDT (Java) for the feature of "Generate constructor using fields" for years. 8o It saves so~ much time for boiler plate code.

If you like this feature too, please Vote it up together with your friends/colleagues in the following page! https://bugs.eclipse.org/bugs/show_bug.cgi?id=306902#c4

So that we can all have this feature in next release!

like image 144
Bill Avatar answered Oct 31 '22 17:10

Bill