User forums > Using Code::Blocks
Making project is so inconvenient, isn't it?
MortenMacFly:
--- Quote from: codeur on April 19, 2012, 04:36:26 am ---Any issues with that?
--- End quote ---
No, as long as you provide a patch.
If you make it an option (i.e. no silent magic, but with user interaction), it might even make it into trunk. 8)
p2rkw:
I use the single file often. I do not like to create a new project for a single file, i debug from command line. Instead of creating new projects, a better option would be to use a global project bound to extension.
I am aware that the realization of every whim is impossible, so I wrote a script which automatically generates project. It is Windows only, and uses gawk. gawk is included in Cygwin, so if u have it installed u have gawk too. project_template.cbp.txt have to be located in same folder as script file. First rename createProject.bat.txt to createProject.bat. Now all you have to do is drag'n drop main file on createProject.bat file. You can change template as you wish ( dont change projectName and fileExt).
Maybe later i'll write bash version. Enjoy.
thomas:
--- Quote from: codeur on April 19, 2012, 04:36:26 am ---For the unofficial education distribution only (Codeblocks-EP comes with bundled compiler and debugger, and supports C and C++ -using GCC- only) I am considering patching the source so as to enable automatic and transparent creation of a console project when there is no open project and the user clicks on "Build" or "Build and run" while editing a file. Rank beginners tend to do this.
--- End quote ---
Start a cpp file, hit a button, and get an empty project with just that file in it? I would use that every day... those "new project wizards" annoy the hell out of me. :D
MortenMacFly:
--- Quote from: thomas on April 20, 2012, 10:46:50 am ---Start a cpp file, hit a button, and get an empty project with just that file in it? I would use that every day... those "new project wizards" annoy the hell out of me. :D
--- End quote ---
You can do an erm... simple wizard to achieve that. 8)
codeur:
--- Quote from: thomas on April 20, 2012, 10:46:50 am ---Start a cpp file, hit a button, and get an empty project with just that file in it? I would use that every day... those "new project wizards" annoy the hell out of me. :D
--- End quote ---
This encourages me to think that doing it is worthwhile. Perhaps providing a "Build current file" menu entry just below "Compile current file" is a good way to handle this on the interface. What do you think?
It's now definitely planned for the next version of Codeblocks-EP. At this stage only Windows is supported, but a Linux version of Codeblocks-EP will come later. For this feature I'll test and provide a patch for both Linux and Windows so it can be added to trunk if you guys think it's worth doing.
Navigation
[0] Message Index
[#] Next page
[*] Previous page
Go to full version