Author Topic: Creating new unit (cpp&h)  (Read 3096 times)

Vorlath

  • Guest
Creating new unit (cpp&h)
« 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

Offline Jenna

  • Administrator
  • Lives here!
  • *****
  • Posts: 7255
Re: Creating new unit (cpp&h)
« Reply #1 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.

Vorlath

  • Guest
Re: Creating new unit (cpp&h)
« Reply #2 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.