Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-xcx-helperNew to Visual Studio Code? Get it now.
vscode-xcx-helper

vscode-xcx-helper

higher

|
33 installs
| (0) | Free
xcx helper tools
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

小程序开发工具

如何开发一个vscode插件

vscode插件是以命令为基础的,编写插件其实就是配置命令,并编写命令处理函数 文档地址

  • 需要全局安装npm的包

    yo generator-code 脚手架

    vsce 打包插件

  • 配置package.json,需要更改如下几个地方,具体参考文档配置

    contributes

    activationEvents

  • 编写插件处理逻辑

    在plugins文件夹新建js文件,导出必须为函数

  • 初始化命令

    在extension.js文件引入plugin

    在activate中调用registerCustomerPlugin去注册命令

插件列表

  • showAddComponentMenu小程序一键创建自定义组件
  • showAddXcxCmsMenu小程序创建cms组件

打包插件

本地打包

npm run package

发布插件市场

见vscode官方文档

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