astrochili / vscode-defold

A toolkit for Visual Studio Code to develop games with Defold
https://marketplace.visualstudio.com/items?itemName=astronachos.defold
MIT License
160 stars 10 forks source link

Create project template? #8

Closed ogrotten closed 2 years ago

ogrotten commented 2 years ago

Under the Quickstart, the first step says.

  1. Download master to use it as the template project.

How is this set as "the template project"?

astrochili commented 2 years ago

I agree, it's a little confusing. I don't really know how to add a real template project to Defold. Here we are talking about just copying the repository and taking its files as the basis of your future project.

gianmichelemariani commented 2 years ago

At the moment you can't set new template projects in Defold. I'm doing something similar for a project of mine, and the way I'm approaching it is through an editor extension with a menu to initialise what I need. I basically create the files on the fly with this. Not sure if it works in your case because you also have the debugger and other things, but maybe it's worth a try?

astrochili commented 2 years ago

Not sure if it works in your case because you also have the debugger and other things, but maybe it's worth a try?

True, unfortunately. Installing the extension is not suitable here, because the extension is installed in a separate folder and is stored as a zip archive. Here there is only one lua-file, and the rest are invisible files and folders for VSCode and git.

astrochili commented 2 years ago

By the way, I just discovered the templates on github. I think this is a good option!

Screenshot 2022-02-03 at 13 58 44