Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to rename a file in CodeBlocks?

Tags:

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.

like image 823
user81055 Avatar asked Jun 11 '13 22:06

user81055


People also ask

How do you Rename a file name?

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.

How do you Rename a file in C++?

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.


1 Answers

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...":

enter image description here

like image 198
greatwolf Avatar answered Nov 30 '22 03:11

greatwolf