Skip to content
| Marketplace
Sign in
Visual Studio Code>Snippets>AutoTemplateNew to Visual Studio Code? Get it now.
AutoTemplate

AutoTemplate

shenweizheng

|
106 installs
| (0) | Free
the first vscode plugin demo
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

AtuoTemplate

一款模板插件,支持多人共享模板,模板支持本地路径及其它远程仓库地址路径。

模板仓库地址

https://code.byted.org/shenweizheng.weini/auto-template-store

模板贡献指南

在仓库新建自己的模板文件或者文件夹,在 index.json 中,指定一个模板的触发字符,并添加模板及模板文件路径,如果模板文件路径为其它仓库地址,还需 在 options 字段中指定分支及路径,默认拉取分支为 master 分支。

Examples

普通路径

"hooks": {
  "description": "Hooks模版",
  "path": "/template/basic/hooks.js"
}

其中 hooks 为触发字符,即在编译器中键入的字符,description 为模板描述,如果编译器存在多个相同的触发字符,可以通过该字段区分,path 字段为模板路劲

本地路径

"local": {
  "description": "Test Local",
  "path": "local:/Users/bytedance/WorkSpace/local-template/local.js"
},

本地路径的 path 字段需要以 local: 开头

其他仓库

"remote": {
  "description": "Test Remote",
  "path": "remote:git@code.byted.org:cg/huodong.git",
  "options": {
    "branch": "master",
    "filePath": "src/main.js"
  }
}

其他仓库地址的 path 字段需要以 remote: 开头,默认拉取分支为 master 分支

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft