Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>ACC 模板生成New to Visual Studio Code? Get it now.
ACC 模板生成

ACC 模板生成

wangjie69

|
62 installs
| (0) | Free
ACC React模板生成 VSCode插件
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ACC React 模板生成工具 适用于VSCode

  • 请勿在.gitignore文件中添加.vscode

开发调试

  • 拉取仓库到本地
  • 执行 yarn
  • 按下F5键(或Fn + F5)
  • 在新打开的窗口中进行调试

打包生成.vsix文件

  • 执行yarn run prepublish

发布到应用商店

  • 发布前保证git工作区干净
  • 手动修改版本号
  • 执行yarn run publish

F5键原理

This is what happens when pressing F5:

  1. .vscode/launch.json instructs to first run a task named npm.
  2. .vscode/tasks.json defines the task npm as a shell command to npm run compile.
  3. package.json defines the script compile as node ./node_modules/vscode/bin/compile -watch -p ./
  4. This eventually invokes the TypeScript compiler included in node_modules, which generates out/src/extension.js and out/src/extension.js.map.
  5. Once the TypeScript compilation task is finished, the code --extensionDevelopmentPath=${workspaceRoot} process is spawned.
  6. The second instance of VS Code is launched in a special mode and it searches for an extension at ${workspaceRoot}.

参考文档

  1. React Component Generator
  2. Extensions Manifest
  3. VSCode Mock Debug
  4. Contribution Points
  5. API文档
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft