Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mini App TemplateNew to Visual Studio Code? Get it now.
Mini App Template

Mini App Template

yirizhou

|
407 installs
| (0) | Free
小程序组件模板插件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mini-app-template README

快速生成小程序模板

Features

可以通过右键生成小程序页面模板和组件模板

Requirements

No Requirements

Extension Settings

是否和文件夹同名miniAppTemplate.useDirectoryName

  • 例如:/pages/test/test
  • 默认为 false, 格式为:/pages/test/index,不和文件夹名相同
{
    "miniAppTemplate.useDirectoryName": false
}

文件后缀设置miniAppTemplate.rules

  • js 文件支持 js和ts
  • css 文件支持 scss和原生的样式后缀(wxss/acss)
  • otherFile其他的模板结构类型,是数组结构
{
  "miniAppTemplate.rules": {
    "aliapp": {
      "file": {
        "json": "json",
        "css": "scss",
        "js": "ts",
        "html": "axml",
        "class": true // 使用class风格
      },
      "otherFile": [
        {
          "name": "js",
          "json": "json",
          "css": "scss",
          "js": "js",
          "html": "axml"
        }
      ]
    },
    "weapp": {
      "file": {
        "json": "json",
        "css": "scss",
        "js": "ts",
        "html": "wxml",
        "class": true // 使用class风格
      },
      "otherFile": [
        {
          "name": "js",
          "json": "json",
          "css": "scss",
          "js": "js",
          "html": "wxml"
        }
      ]
    }
  }
}

Known Issues

Calling out known issues can help limit users opening duplicate issues against your extension.

Release Notes

Users appreciate release notes as you update your extension.

1.0.0

Initial release of ...

1.0.1

Fixed issue #.

1.1.0

Added features X, Y, and Z.


Working with Markdown

Note: You can author your README using Visual Studio Code. Here are some useful editor keyboard shortcuts:

  • Split the editor (Cmd+\ on macOS or Ctrl+\ on Windows and Linux)
  • Toggle preview (Shift+CMD+V on macOS or Shift+Ctrl+V on Windows and Linux)
  • Press Ctrl+Space (Windows, Linux) or Cmd+Space (macOS) to see a list of Markdown snippets

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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