Author Topic: Cannot rename files from within a project  (Read 1400 times)

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 38
Cannot rename files from within a project
« 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Cannot rename files from within a project
« Reply #1 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
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: Cannot rename files from within a project
« Reply #2 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

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Cannot rename files from within a project
« Reply #3 on: March 10, 2021, 10:03:40 am »
Yes, this is confusing a bit. You can log a feature request if you like.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Miguel Gimenez

  • Lives here!
  • ****
  • Posts: 773
Re: Cannot rename files from within a project
« Reply #4 on: March 10, 2021, 12:28:07 pm »
IMHO graying the menu item instead of hiding it would be a lot more clearer

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Cannot rename files from within a project
« Reply #5 on: March 10, 2021, 12:45:18 pm »
I know or we just need to make it work, by closing it first. :)
Patches welcome.
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: Cannot rename files from within a project
« Reply #6 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  ::)

Offline oBFusCATed

  • Developer
  • Lives here!
  • *****
  • Posts: 13438
    • Travis build status
Re: Cannot rename files from within a project
« Reply #7 on: March 10, 2021, 02:24:34 pm »
I suppose you already know how to do it: https://sourceforge.net/p/codeblocks/tickets/1073/ :)
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

Offline Elena

  • Multiple posting newcomer
  • *
  • Posts: 38
Re: Cannot rename files from within a project
« Reply #8 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