Developer forums (C::B DEVELOPMENT STRICTLY!) > Development
Feature request: right click on project name to create new Directory
pledreau:
Hello,
When I create a project(for example a console project) I'd like to organize the files in directories
for examples sources, includes and so on...
For this I'd like to right click on the project name and dispose of the command create dir
Then on the folder the command already exists(by right click) and I can create sub-folder (if I want) or add files to the created directory
+--+sources
| |
| +module1
| |-source1.c
| +module2
| |-source2.c
+--+includes
| |
| +module1
| |-source1.h
| +module2
| |-source2.h
pledreau
thomas:
And with that comes the ability to rename sources from the project manager, or to move them around... and things like that.
The problem with this is that currently, that is quite hard to achieve. Projects work on files, and if a folder contains no project files you will not be able to see it.
Unless we do a major redesign, we'll have to resort to a hack to enable features like this. And even then, there won't be an easy way.
Think of cvs and .svn folders -- you would not want these to appear in the project view. The problem is that there are a couple more of them, and neither do we know about all of them, nor are they standardised (for example, TortoiseSVN came up with folders called _svn instead of .svn because of some Windows fallacy, and this is now official, but the only way to know which one is used on a particular machine is to query an environment variable, which is a hack again).
Thus, we would have to keep track of Code::Blocks generated directories ourselves inside the project file... or something. But that again, is no good solution.
pledreau:
Thanks for your answer but why do you say that it isn't a good solution to keep track of generated directories inside the project file ?
msvc++ or dev c++,...for example, keep the directories in the project file. And it is more confortable to build the directories of the project.
To move files from one place to another, just with drag and drop. Delete the file from the project without deleting it from the disk.
I've tried to import a project from a .dsw file and the tree build with code::blocks doesn't match the msvc++ tree, and it's difficult to
adjust the project I have to build the real directory on the disk, then transfert the files in it then add them to the project...
Of course, it is quite hard to achieve that but it could be fine to have it.
best regards
pledreau
David Perfors:
IMO the roject should be organised on the harddisk, not in a project. That way it is easier to understand the project when you dan't want to use an IDE... but that is of course just my opinion ;)
pledreau:
Hello,
Of course when the project is organised on the hard disk it's easier to understand, but for my case every developper here work with msvc++.
And the project organisation is in the project file so I can't say "hey, I'd like to use code::blocks but it is necessary to reorganise all the project for this" :? It's the reason why I say it could be fine to have it for adaptability, this functionnality could helps if the project isn't organise on the hard disk but also if it is.You haven't the need to leave the IDE to create directories because it' integrated ...
So I stop there the thread, if no body is interrest with it that doesn't matter...
it was just a proposition!! :)
best regards
pledreau
Navigation
[0] Message Index
[#] Next page
Go to full version