Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>vscode-bridgeNew to Visual Studio Code? Get it now.
vscode-bridge

vscode-bridge

zhuxchen

|
124 installs
| (1) | Free
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

vscoed-bridge

前端根据后端接口来生成前端servers层代码

准备

创建一个snippets-config.json在项目的根位置命名的JSON文件。创建或更改文件后,vscode-bridge将检测并启动扩展过程!

snippets-config 配置信息

参数 说明 类型 选项
originUrl 接口平台提供数据源 string 必填
outDir 生成代码的存放路径,使用相对路径 string 必填
servicesHeader 头部引入services配置 string 必填
fileType 生成文件类型 string 可选
fileName 生成文件名称 string 可选
rules 配置规则 [] 可选

rules

{
  "rules": [
    {
        "test": "format",
        "use": [{
            "loader": "format-loader",
            "options": {
                "regexp": "\/api\/v3\/",
                "replacement": "" 
            }
        }]
    }
  ]
}
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft