简体   繁体   中英

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?

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!

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM