# 手写vscode插件
安装node 和git
安装 yo 和 generator-code
npm install -g yo generator-code
执行
yo code
,问好后面的提示需要自己输入# ? 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? LEAVE BLANK
# ? Initialize a git repository? Yes
# ? Bundle the source code with webpack? No
# ? Which package manager to use? npm
在vscode中按住(快捷键 ⇧⌘P)输入
shell command
code ./helloworld
按住
F5
在新打开的窗口中按住(⇧⌘P)
然后输入
hello world
就会看到
Hello World from HelloWorld!
的提示恭喜你!!!
← Vs Code 扩展能力 前端常见安全问题 →