danielpinto8zz6/c-cpp-project-generator

Customize template for the generated project

Opened this issue · 0 comments

Is your feature request related to a problem? Please describe.
I don't want to use the basic Makefile that comes with the generated project! Of course it's fine on its own, but i like to customize stuff to my liking. Why is there no way (or, no obvious way) to customize the template from which the project will be generated?

Describe the solution you'd like
The best solution i see for both end-users and the devs is having a folder, e.g. in .config that simply has the template the users would be able to modify, after that, the extension can just cp the template into chosen folder for project and voila!
More on the solution lower.

Describe alternatives you've considered
I could just make a tiny script that literally does what i described above, the issue is that i don't know TS or JS or anything that can be integrated within VSCodium, and running the shell script is much less satisfying and easy

Additional context
I don't think any additional context is necessary, but ask me for more details if i somehow missed something! :)

A quick bash script i made to replicate exactly the behaviour i mean:

#!/bin/bash

if [[ "$1" != "" ]]; then
    newname=$1
else
    newname="new_cpp_project"
fi

cp -r ~/cpp_project_template $PWD/$newname