使用 VSCode 更改时自动保存文件 [英] Auto-saving files upon changes with VSCode

查看:41
本文介绍了使用 VSCode 更改时自动保存文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经使用 JetBrains 的 WebStorm 将近 4 年了.出于多种原因,它是一个很棒的 IDE,但最好的功能之一是它可以保存版本控制之外的文件版本.因此,如果您在 VCS 保存文件之前不小心删除了文件或丢失了文件,WebStorm 会提供它们的副本,并且可以使用可视化差异工具.这个功能不止一次救了我.

我的问题是 - 对于 VSCode,是否有一些功能/插件可以在文件更改时自动保存文件副本?VSCode 会将文件保存到某个中心位置,或者可能保存在本地工作区的 .vscode 文件夹中?

WebStorm 中的功能可从本地历史记录 ->"获得显示历史"从文件夹或文件.这是一篇关于它的文章:

解决方案

您可以进入菜单文件并选择自动保存.

I have used WebStorm from JetBrains for almost 4 years now. It's a fantastic IDE for many reasons, but one of the best features is that it saves versions of files outside of version control. So if you accidentally delete files or lose files before they are saved by your VCS, WebStorm has a copy of them and there are visual diff tools to use. This feature has saved me on more than one occasion.

My question is - for VSCode is there some feature/plugin that will auto-save copies of files as they change? VSCode will save the files to some central location, or perhaps in the .vscode folder in the local workspace?

The feature in WebStorm is available from "Local History -> Show History" from a folder or file. Here is an article about it: https://blog.jetbrains.com/phpstorm/2012/10/using-local-history-for-code-changes-tracking/

The view looks like:

解决方案

you can go to menu Files and choose auto save.

这篇关于使用 VSCode 更改时自动保存文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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