Skip to content
| Marketplace
Sign in
Visual Studio Code>Extension Packs>百度小程序开发助手New to Visual Studio Code? Get it now.
百度小程序开发助手

百度小程序开发助手

swan-mini

|
1,049 installs
| (0) | Free
Swan mini program develop toolkit,支持小程序模板语法高亮、代码检查、智能提示,swan api 智能提示、代码补全。
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

百度小程序开发助手

百度小程序开发助手,支持 swan 文件的语法高亮、代码检查、智能提示,swan api 智能提示、代码补全。

Features

命令

  • vscode-swan-mini.newPage 新建 Page
  • vscode-swan-mini.newComponent 新建 Component
  • vscode-swan-mini.formatSwan 格式化 Swan 文件
  • vscode-swan-mini.swanToolkitStartDev 启动 dev 命令
  • vscode-swan-mini.swanToolkitPreview 预览小程序
  • vscode-swan-mini.swanToolkitUpload 发布小程序
  • vscode-swan-mini.globalSwanLint 全局检查 Swan 文件

特性支持

  • 公共组件属性、事件智能提示
  • 自定义组件属性、自定义事件智能提示
  • snippets 代码片段
  • swan 模板代码格式化
  • swan 文件语法高亮
  • swan 文件跳转到定义
  • swan 文件悬停组件和 js 变量, css 类定义提示
  • swan 文件 command + click 跳转到组件和 js 变量,css 类定义
  • swan 文件 语法、变量、事件、css 智能补全
  • swan api 智能提示
  • swan 模板语法检查
  • swan 模板代码大纲
  • json 配置文件提示和链接
  • sjs 文件语法高亮
  • 支持使用 swan-toolkit 开发、预览、发布小程序

Requirements

vscode >= 1.33.0

Extension Settings

  • Lint: Rule Config 设置代码检查规则集
    • basic 基本检查,包含基本语法检查
    • recommended 推荐检查
    • strict 严格检查
  • Lint: Run 设置代码检查时机: 保存时 或者 编辑时
    • onType 编写代码时实时检查
    • onSave 保存文件时检查
  • Typings: Disable Auto Detect 是否自动检测安装 swan API 类型定义
  • Lint: Xml Indent 设置 Swan 代码缩进

Thanks To

  • vscode-swan
  • minapp-vscode
  • eslint-plugin-vue
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft