Author Topic: suggest new script plugin to create project for single source file  (Read 603 times)

Offline Anbang24

  • Multiple posting newcomer
  • *
  • Posts: 13
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.

Offline stahta01

  • Lives here!
  • ****
  • Posts: 7573
    • My Best Post
Re: suggest new script plugin to create project for single source file
« Reply #1 on: March 01, 2024, 08:51:00 pm »
Sounds like a waste of time to me.

The problem is the users do not wish to use projects! Creating a script to make a project would still require them to use projects!

Tim S.
C Programmer working to learn more about C++ and Git.
On Windows 7 64 bit and Windows 10 64 bit.
--
When in doubt, read the CB WiKi FAQ. http://wiki.codeblocks.org