Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>post-to-serverNew to Visual Studio Code? Get it now.
post-to-server

post-to-server

zhaoyangMa

|
92 installs
| (0) | Free
This plug-in is used to call the interface when the file is changed, and transmit the currently edited file and file path to the server.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

post-to-server README

  • 用来实现在文件变更时,调用接口,将当前编辑的文件和文件路径传送到服务器。
  • This plug-in is used to call the interface when the file is changed, and transmit the currently edited file and file path to the server.

usage

  • 在本地添加配置文件 .post-to-server.json
  • 配置介绍:
  • enable: 启用/关闭 本扩展。enable/disable this extension
  • url: 请求接口地址。request interface address
  • headers: 请求头设置,配置参考 axios。Request header settings, configuration reference axios axios headers 配置
  • ignore: <[string]> 忽略文件。ignore files
  • tipsOnSuccess: 保存成功后是否提示。Whether to prompt after saving successfully
{
  "open": true,
  "url": "https://abc.com",
  "headers": {
    "content-type": "application/json",
    "x-fpp-origin": "demo123",
    "authorization": "123"
  },
  "ignore": [
    ".gitignore", ".post-to-server.json"
  ],
  "tipsOnSuccess": true
}

For more information

  • Visual Studio Code's Markdown Support
  • Markdown Syntax Reference

Enjoy!

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