visual-studio 是否有 Visual Studio 自动保存配置设置?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/979561/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-10-22 10:37:52  来源:igfitidea点击:

Is there a visual studio automatic save configuration setting?

visual-studiovisual-studio-2008resharperautosave

提问by

I use the java IDE IntelliJ IDEA and one of the features I like is that there's no saving. Everything's always saved and you just use history navigation. I tend to have both editors open and I'm always forgetting to save in VS.

我使用 java IDE IntelliJ IDEA,我喜欢的功能之一是无需保存。一切都会被保存,您只需使用历史导航。我倾向于同时打开两个编辑器,而且我总是忘记在 VS 中保存。

I'm running vs 2008 with resharper 4.5 but as far as I can tell this isn't achievable or configurable. Any suggestions?

我正在使用 resharper 4.5 运行 vs 2008,但据我所知,这是无法实现或可配置的。有什么建议?

回答by Michael Kone?ny

For VS 2019, the Auto Save Fileextension seems to work as expected.

对于 VS 2019,自动保存文件扩展名似乎按预期工作。

It saves individual files on lost focus, can save all files when VS loses focus and can also save all after an inactivity delay.

它在失去焦点时保存单个文件,可以在 VS 失去焦点时保存所有文件,也可以在不活动延迟后保存所有文件。

In VS 2015, I used to use NoMorePanicSave2015.

在 VS 2015 中,我曾经使用NoMorePanicSave2015

It does an equivalent of Ctrl+Shift+Swhen Visual Studio loses focus, which saves all your files, including solution and projects.

它的等效Ctrl+ Shift+S时,Visual Studio中失去焦点,从而节省您的所有文件,包括解决方案和项目。

回答by gregmac

Another plugin: CBAutoSave

另一个插件:CBAutoSave

This extension can automatically save modified documents, projects, and the solution whenever Visual Studio loses focus.

Saving of modified documents is on by default, while automatically saving projects and the solution is not. All options are configurable through the Visual Studio options dialog.

此扩展可以在 Visual Studio 失去焦点时自动保存修改后的文档、项目和解决方案。

默认情况下保存修改的文档是打开的,而自动保存项目而解决方案不是。所有选项都可以通过 Visual Studio 选项对话框进行配置。

回答by bestinamir

In VS2017/19 Community there is Auto-Recover option under tools->options->autorecover. It will not autosave unless there is a crash, so it may be a good compromise.

在 VS2017/19 社区中,工具->选项->自动恢复下有自动恢复选项。除非发生崩溃,否则它不会自动保存,因此它可能是一个很好的折衷方案。

In VS2019 its under tools->Options->Environment-AutoRecover.

在 VS2019 下工具->选项->环境-自动恢复。

how-to-auto-save-work-on-visual-studio

如何自动保存视觉工作室的工作

回答by jasonh

Visual Studio 2008 will probably be the same:

Visual Studio 2008 可能是一样的:

http://www.howtogeek.com/howto/programming/configure-autosave-autorecovery-of-crashed-projects-in-visual-studio-2005/

http://www.howtogeek.com/howto/programming/configure-autosave-autorecovery-of-crashed-projects-in-visual-studio-2005/

However, it's not "no saving" but you can set it down to 1 minute.

但是,这不是“不保存”,而是您可以将其设置为 1 分钟。

回答by Benjol

There is an autosave, but I must admit that it doesn't seem to always work for me - notably I suspect that it only saves files, but not projects/solutions, or the .user and .suo files. I don't have any links to prove this mind you.

有一个自动保存,但我必须承认它似乎并不总是对我有用 - 特别是我怀疑它只保存文件,而不是项目/解决方案,或者 .user 和 .suo 文件。我没有任何链接可以证明这一点。