Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Vorlath on August 09, 2008, 06:02:47 am

Title: Creating new unit (cpp&h)
Post by: Vorlath on August 09, 2008, 06:02:47 am
How can I create a new unit with Code::Blocks?  I want to create both the .cpp and .h at the same time.

Thanks
Title: Re: Creating new unit (cpp&h)
Post by: Jenna on August 09, 2008, 10:10:55 am
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.
Title: Re: Creating new unit (cpp&h)
Post by: Vorlath on August 09, 2008, 12:16:20 pm
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.