Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Template Code GeneratorNew to Visual Studio Code? Get it now.
Template Code Generator

Template Code Generator

fixedx

|
14 installs
| (0) | Free
generate code according to template
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Template Code Generator

一个基于template的代码生成器,用于生成模板代码。

生成类型

  • page 生成一个页面
  • component 生成一个组件
  • router 生成一个路由
  • form 生成一个表单
  • style 生成一个样式

模板定义

在项目根目录下可以使用handbar模板格式编写自定义模板,模板中暂时支持以下变量:

  • {lowerCaseName} 小写名字
  • {upperCaseName} 大写名字

自定义配置

{
    "tpl.page": "tpl/page.tpl",
    "tpl.component": "tpl/component.tpl",
    "tpl.router": "tpl/router.tpl",
    "tpl.form": "tpl/form.tpl",
    "tpl.style": "tpl/style.tpl",
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft