vscode插件开发教程-helloworld插件
本文参考官方文档:Your First Extension
初始化项目
首先确认nodejs和git都已经安装,然后安装必备的工具: npm install -g yo generator-code
, ubuntu系统下使用sudo npm install -g yo generator-code
然后使用工具初始化一个新的工程:yo code
xiaochao@xiaochao:~/study/vscode$ yo code
_-----_ ╭──────────────────────────╮
| | │ Welcome to the Visual │
|--(o)--| │ Studio Code Extension │
`---------´ │ generator! │
( _´U`_ ) ╰──────────────────────────╯
/___A___\ /
| ~ |
__'.___.'__
´ ` |° ´ Y `
? What type of extension do you want to create? New Extension (TypeScript)
? What's the name of your extension? helloworld
? What's the identifier of your extension? helloworld
? What's the description of your extension? helloworld
? Initialize a git repository? Yes
? Bundle the source code with webpack? No
? Which package manager