User forums > Using Code::Blocks

Changing the file name of a class created with codeblocks

(1/1)

kingcools:
Hi, i created the base of a class with the codeblcks class creator, but now the file is listed with its (full) path name in the project manager and i can not rename it(the option doesnt show up when i right click it).
How do i do this? It is pretty annoying because he name is veeeeery long.

thank you :)

oBFusCATed:
Close the file if it is opened for editing and the option will be reactivated.
I don't know why it is done like so, but it is very annoying and user unfriendly :(

kingcools:
thank you, but it doesnt work as "intended"
first it was like this:

c:\blabla\otherdirectory\codeblocks\myclass.h

then when i renamed it to "mynewclassname.h"

it went to:
c:\blabla\...\mynewclassname.h

but i want it to show up as:
mynewclassname.h in the project manager

kingcools:
is this unchangeable? Shall I post a screenshot?

Navigation

[0] Message Index

Go to full version