vscode-template icon indicating copy to clipboard operation
vscode-template copied to clipboard

Can you add an option to set the template path?

Open jzsn2018 opened this issue 2 years ago • 2 comments

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 avatar Jun 02 '23 17:06 jzsn2018

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 😀

stegano avatar Jun 03 '23 07:06 stegano

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.

jzsn2018 avatar Jul 17 '23 16:07 jzsn2018