文章目录
- 1、使用vscode官方插件生成框架,下载脚手架
- 2、使用脚手架初始化项目,这里我选择的是js
- 3、生成的文件结构如下,重要的就是以下两个文件
- 4、代码
- 5、打包使用
- 6、发布官网地址
- 7、publisher ID 'undefined' provided in the extension manifest should match the publisher ID 'fakerwangwangdui71' under which you are trying to publish this extension.
- 9、文档和官网地址
1、使用vscode官方插件生成框架,下载脚手架
npm install -g yo generator-code
2、使用脚手架初始化项目,这里我选择的是js
yo code
3、生成的文件结构如下,重要的就是以下两个文件
4、代码
参考:
VSCode插件开发 流程尝试篇
开发效率:VSCode extension/插件 开发
5、打包使用
npm install -g vsce
vsce package
打包报错问题 - https://juejin.cn/post/7355423822643249186
6、发布官网地址
https://marketplace.visualstudio.com/manage/publishers/fakerwangwangdui71
7、publisher ID ‘undefined’ provided in the extension manifest should match the publisher ID ‘fakerwangwangdui71’ under which you are trying to publish this extension.
9、文档和官网地址
官方api文档地址
github仓库提供了许多示例代码