How to create a custom project template in Visual Studio Code

Viewed 3237

How can I create a template for new project in VS Code so that every time I create a new project from the template, every file and content of the file is automatically created for me. For example, I want VS Code to make my new project including a Makefile file with the following content:

console: main 
    ./main

file: main 
    ./main < input.txt > output.txt
    
main: main.cpp 
    g++ -g -O2 -std=gnu++17 -static main.cpp -o main

together with 3 files which are main.cpp, input.txt and output.txt.

1 Answers
Related