Code::Blocks Forums

User forums => Using Code::Blocks => Topic started by: Elena on March 08, 2021, 07:59:46 pm

Title: Cannot rename files from within a project
Post by: Elena on March 08, 2021, 07:59:46 pm
It looks that there is not any way to rename a source file from within cb which can sometimes be very troublesome. In the management files tree there is not any rename option. If I have to rename a source (which I have to do often for some complex projects) the only way is removing the file from the project, renaming it externally and add the file to the project again. Is it possible that such a vital feature is missing or it's me who missed something ? Thanks
Title: Re: Cannot rename files from within a project
Post by: oBFusCATed on March 08, 2021, 08:25:20 pm
You cannot rename opened files. If you close it you'll have to option to rename it. But it won't rename it in your VCS. You're using a one aren't you? https://en.wikipedia.org/wiki/Version_control
Title: Re: Cannot rename files from within a project
Post by: Elena on March 10, 2021, 01:56:06 am
No I am not currently using any VCS, however THANKS, I simply did not realize that I had to close the files if they were opened in the editor, to rename them  :D :D :D
Title: Re: Cannot rename files from within a project
Post by: oBFusCATed on March 10, 2021, 10:03:40 am
Yes, this is confusing a bit. You can log a feature request if you like.
Title: Re: Cannot rename files from within a project
Post by: Miguel Gimenez on March 10, 2021, 12:28:07 pm
IMHO graying the menu item instead of hiding it would be a lot more clearer
Title: Re: Cannot rename files from within a project
Post by: oBFusCATed on March 10, 2021, 12:45:18 pm
I know or we just need to make it work, by closing it first. :)
Patches welcome.
Title: Re: Cannot rename files from within a project
Post by: Elena on March 10, 2021, 12:51:16 pm
I come from VS lol so I am used to several things of its IDE, and since c::b is quite similar I often do certain things without thinking and then I realize they work differently  :P
Btw how do I issue a feature request here ? Sorry but I am very new  ::)
Title: Re: Cannot rename files from within a project
Post by: oBFusCATed on March 10, 2021, 02:24:34 pm
I suppose you already know how to do it: https://sourceforge.net/p/codeblocks/tickets/1073/ :)
Title: Re: Cannot rename files from within a project
Post by: Elena on March 10, 2021, 02:35:11 pm
Ah sorry I am not very confident with sourceforge things, I thought tickets were for reporting bugs only :P