As we know, Code::Blocks recommend developing programs with project instead of single source file. In single-file developing with Code::Blocks, one can compile and run the executable, but debugging buttons and menu items are disabled. From time to time, there are users asking why the debugging buttons and menu items are disabled, the standard answer is to suggest them to create a project.
Many users (especially programming beginners) prefer single-file developing, we shouldn't ignore their request. Here I propose a suggestion to satisfy both Code::Blocks developers and those users: provide a script plugin (maybe named "Single file project") to create project for single source file.
For example, a programming beginner wrote a single source file named "test.cpp" and saved in directory "D:\myprogs", he should click the menu item of "Single file project", then a project named "test.cbp" containing "test.cpp" will be created and saved in the same directory, and the project is opened automatically, so he will be working with project now, and debugging buttons and menu items will be enabled now.
I am unfamiliar with script or plugin developing, so I am unable to write such a script plugin. I hope someone would consider about it.