Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Mock And ProxyNew to Visual Studio Code? Get it now.
Mock And Proxy

Mock And Proxy

Adashuai5

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

Mock And Proxy

Open a mock or proxy service and switch freely.

Usage

  1. using command

    command+shift+P then input "Start Mock".

  2. using config file

    Create a configuration file named mockAndProxy.config.json with the following example then "Reload Window" to start the service automatically or use the command.

mockAndProxy.config.json example

{
  "port": 10088,
  "targets": [
    {
      "name": "开发环境",
      "target": "https://xxxdev.com.cn"
    },
    {
      "name": "测试环境",
      "target": "https://xxxtest.com.cn"
    },
    {
      "name": "预发环境",
      "target": "https://xxxpre.com.cn"
    },
    {
      "name": "生产环境",
      "target": "https://xxx.com.cn"
    }
  ]
}

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft