I personally follow a different strategy: Do not allow single file compilation (without a project) at all...
-1
Dear forum,
What a'butt having dummy projects by default? Something similar to what happens in Delphi. You just say: I want a new Form, and voilĂ ! There is a dummy project, a dummy .pas file and a dummy .dfm file. You do not even need to save any of them in order to test and debug anything you want. If you like it, you can save it anywhere you want afterwards, but if you do not, it is almost like if nothing had happened (there may be a .exe created somewhere which is most likely to be overwritten by the next 'dummy' test).
Morrrrrrrrrrrten: is that more or less, kind of, approximately, nearly what you mean by "one-click project setup"?
In any case, that also has a drawback: C::B's default behavior is to "save before compiling". Of course you need to save the file somewhere to feed the hungry compiler easily, let it chew the file for a while and wait until it spits that precious object file. It would be lovely if for such a 'dummy' project a "save to temporary file and do not bother the user" could be implemented.
Another nice thing of such an implementation is that you can easily add extra dummy files to the dummy project, yet you do not need to save them in order to compile them all, link them together and run (and even debug) the resulting executable.
Waiting for you complaints.
mvg,
Me.