News:

When registered with our forums, feel free to send a "here I am" post here to differ human beings from SPAM bots.

Main Menu

Code Blocks(New project set default main filename)

Started by Cool Javelin, December 18, 2019, 01:27:09 AM

Previous topic - Next topic

Cool Javelin

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.

stahta01

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++.
On Windows 10 64 bit and Windows 11 64 bit.
--
When in doubt, read the CB WiKi FAQ. [url="http://wiki.codeblocks.org"]http://wiki.codeblocks.org[/url]