Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you add an option to set the template path? #40

Open
jzsn2018 opened this issue Jun 2, 2023 · 2 comments
Open

Can you add an option to set the template path? #40

jzsn2018 opened this issue Jun 2, 2023 · 2 comments

Comments

@jzsn2018
Copy link

jzsn2018 commented Jun 2, 2023

Could set a new choice let user set template path in user variable path, like ~/.vscode/.template , rather than in every project root path?

sorry my english is poor

@jzsn2018 jzsn2018 changed the title Can let templte placement in ~/.vscode ? Can you add an option to set the template path? Jun 2, 2023
@stegano
Copy link
Owner

stegano commented Jun 3, 2023

Hi @jzsn2018,

You can set .template directory path

step

  1. move(or create) .template directory(e.g. ~project/.vscode/.template)
  2. set templateRootPath in template.config.js
...
module.exports = {
  // You can change the template path to another path
  templateRootPath: "./.vscode/.templates", // <-- here is replace "./.templates" with "./.vscode/.templates"
  ...
...

Please let me know if I'm misunderstanding your question

Thanks 😀

@jzsn2018
Copy link
Author

thanks your reply~.

This may be a bit different from what I think, I hope that the global maintenance is in one place in the global situation, and there is no need to create a template.config.js file in the root directory of any project.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants