我在 VS 代码上使用 ftp-simple 扩展。每次我将文件上传到 FTP 服务器时,我都厌倦了按覆盖按钮。 我可以创建一个快捷方式(如 Ctrl+alt+S)来覆盖扩展而无需在上传到 FTP 时询问吗?
最佳答案
我从扩展的 ftp-simple 看到文档有一个选项:
confirm
- boolean - (option) Only save option. When you save the file, ask if you want to overwrite the file if it already exists.. Default: true
所以
"confirm" : false,
应该消除您看到的警告/验证。
关于vscode-extensions - 在 VS Code 上通过 ftp-simple 扩展上传时,如何为 "overwrite"做快捷方式,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/50264499/