vscode更改配置文件路径,更改Visual Studio Code中的默认打开和保存位置?

博客探讨了能否更改VSCode文件默认打开和保存位置,默认位置是系统根目录,期望改为桌面。在偏好设置中未找到支持此功能的选项,解决方案是在VSCode中以文件夹形式打开桌面,这样默认保存位置就会符合需求。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

Is it possible to change the default opening and saving location when trying to open and/or save a file.

The default location seems to be the root, but I would like it to be the desktop.

解决方案

I haven't found anything in the Preferences settings that would support this, nor found anything stating that this is supported.

As you've stated yourself, the default location is the root of your system. At least, if you aren't working in a folder.

What you could do, of course, is simply open your ~/Desktop as a folder in VSCode. Then, automatically, your default save location is exactly as you'd like it to be.

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值