Code::Blocks Forums
User forums => Using Code::Blocks => Topic started by: JavaMatrix on November 30, 2014, 10:57:13 pm
-
Hello, I'm new. ;D
Right now, I've got all of my files in src or include, depending on if they are cpp's or h's.
I'd like to be able to divide them into folders, like Java's "package" structure. I've searched around, and I haven't been able to find anything on how to do this. I do not want Virtual Directories. I would like to divide it into actual directories, as I want to be able to open this in another IDE if necessary or put it up on BitBucket for source control. I've been able to create directories in the Files view, but they do not appear in the Project view and any files I move into these directories seem to disappear in CodeBlock's eyes. I'm probably missing something obvious, so I appreciate your patience.
Thanks,
JavaMatrix
-
Have you added the files to the project?
Is "Projects -> Project tree -> Display folders as on disk" enabled?
-
Have you added the files to the project?
Yes, yes I have. They were part of the project before I moved them into the directory. Do I need to do it again?
Is "Projects -> Project tree -> Display folders as on disk" enabled?
Yes.
-
Aha, seems adding them to the project again after moving them to the new directory fixed the issue. That's a bit counter-intuitive, but now I know. Thank you, oBFusCATed.