News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

Creating new unit (cpp&h)

Started by Vorlath, August 09, 2008, 06:02:47 AM

Previous topic - Next topic

Vorlath

How can I create a new unit with Code::Blocks?  I want to create both the .cpp and .h at the same time.

Thanks

Jenna

If they should contain a class, you can use the class wizard plugin: "Plugins -> Class Wizard".

If you want empty files you can create either the .cpp or the .h-file from the "File -> New" menu and after having it open, you can use "Swap header/source" from the context-menu.
If the file you try to swap to does not exist, C::B asks if you want to create it.

Vorlath

Thanks for the info.  It will do what I need.  I still say there should be an option to create both at the same time though.