VS Code 在 ech CSS 保存时要求输入密码 [英] VS Code asks for password on ech CSS save

查看:25
本文介绍了VS Code 在 ech CSS 保存时要求输入密码的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 VS Code 好几个月了.最近,每次我保存对 html 或 css 样式表的更改时,都会要求我输入密码:

I have been using VS Code for many months. Recently, I get asked for my password each time I save changes to html or css stylesheet:

[localhost]:输入您的密码(按Enter"确认或ESC"取消)

[localhost]: Enter your password (Press 'Enter' to confirm or 'ESC' to cancel)

我花了很长时间试图阻止它,但没有运气.

I have spent ages trying to stop it, but no luck.

推荐答案

问题出在 SFTP 扩展上.

The problem is in SFTP extension.

要解决这个问题,打开sftp.json 配置文件(例如:ctrl + shift + P 'SFTP: Config')并找到默认行uploadOnSave":true.

To solve this, open sftp.json configuration file (for example: ctrl + shift + P 'SFTP: Config') and find a default line "uploadOnSave": true.

将其值更改为 false.

这篇关于VS Code 在 ech CSS 保存时要求输入密码的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆