Author Topic: Code Blocks(New project set default main filename)  (Read 2888 times)

Offline Cool Javelin

  • Multiple posting newcomer
  • *
  • Posts: 22
Code Blocks(New project set default main filename)
« on: December 18, 2019, 01:27:09 am »
Code::Blocs16 - Win7

When I start a new project, C::B creates a file for me called main.c (or maybe main.cpp.)

Is there a way to get C::B to automatically name that file the same as my project name, not main.c?

I know how to rename it manually (Project Manager->right click the main.c file, select rename.)

For example: I may want to create a project called MakeTable. Rather then C::B creating (then later me renaming) main.c, I'd like C::B create MakeTable.c.

Is this possible? If so, How to?

Thanks, Mark.
My 1st computer was an IBM System 360. We used punch cards. God help us when the runner dropped the boxes on the way to the computer room.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7582
    • My Best Post
Re: Code Blocks(New project set default main filename)
« Reply #1 on: December 18, 2019, 03:26:08 am »
You can likely edit the project wizard.

If you want help, you will need to say what wizard you are using.

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org