# 手写vscode插件

  1. 安装node 和git

  2. 安装 yo 和 generator-code npm install -g yo generator-code

  3. 执行 yo code,问好后面的提示需要自己输入

    1. # ? What type of extension do you want to create? New Extension (TypeScript)
    2. # ? What's the name of your extension? HelloWorld
    3. # ? What's the identifier of your extension? helloworld
    4. # ? What's the description of your extension? LEAVE BLANK
    5. # ? Initialize a git repository? Yes
    6. # ? Bundle the source code with webpack? No
    7. # ? Which package manager to use? npm
  4. 在vscode中按住(快捷键 ⇧⌘P)输入 shell command

  5. code ./helloworld

  6. 按住F5

  7. 在新打开的窗口中按住(⇧⌘P)

  8. 然后输入hello world

  9. 就会看到Hello World from HelloWorld!的提示

  10. 恭喜你!!!