Is there a "rename file" option in codeblocks, instead of renaming it through Explorer? I tried right-clicking the tab, but there didn't seem to be one.
Open File Explorer by going to My Computer, or by pressing Windows Key + E on your keyboard. Find the file you want to rename, select it and select Rename on the ribbon (or press F2 on your keyboard). Type the new name you want the file to have and press Enter.
int rename( const char *oldname, const char *newname ); The rename() function takes a two arguments: oldname , newname and returns an integer value. It renames the file represented by the string pointed to by oldname to the string pointed to by newname . It is defined in <cstdio> header file.
Make sure the file you're renaming isn't open in codeblocks. Under Projects->Workspace, right-click on the file to popup the context menu. From there click "Rename file...":
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With