Skip to content

Commit 93128df

Browse files
committed
Convert AutoRecover article to how-to
1 parent ab9ee12 commit 93128df

File tree

4 files changed

+59
-54
lines changed

4 files changed

+59
-54
lines changed

.openpublishing.redirection.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,10 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/ide/reference/autorecover-environment-options-dialog-box.md",
5+
"redirect_url": "/visualstudio/ide/autorecover-environment-options-dialog-box",
6+
"redirect_document_id": false
7+
},
38
{
49
"source_path": "docs/ide/reference/environment-preview-features-options.md",
510
"redirect_url": "/previous-versions/visualstudio/visual-studio-2017/ide/reference/environment-preview-features-options",
Lines changed: 52 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,52 @@
1+
---
2+
title: Set AutoRecover options
3+
description: Learn about the AutoRecover, Environment, Options dialog box and how it's used to specify whether or not to automatically back up files.
4+
ms.date: 08/07/2025
5+
ms.topic: reference
6+
f1_keywords:
7+
- VS.DialogAutoRestore
8+
- VS.ToolsOptionsPages.Environment.AutoRecover
9+
- VS.ToolsOptionsPages.Environment.Auto_Save_and_Restore
10+
helpviewer_keywords:
11+
- files, recovering
12+
- AutoRecover page
13+
- saving files, automatically
14+
- files, saving automatically
15+
ms.custom: "ide-ref"
16+
author: anandmeg
17+
ms.author: meghaanand
18+
manager: mijacobs
19+
ms.subservice: general-ide
20+
---
21+
# Set AutoRecover options
22+
23+
You can configure Visual Studio to automatically back up files or not. You can also specify if you want to restore modified files if Visual Studio shuts down unexpectedly.
24+
25+
1. To access this dialog box, go to **Tools** > **Options** > **Environment** > **AutoRecover**.
26+
27+
:::image type="content" source="media/autorecover-options.png" alt-text="Screenshot of the AutoRecover section in the Options dialog box":::
28+
29+
1. Select **Save AutoRecover information every [n] minutes**.
30+
31+
::: moniker range=">=vs-2022"
32+
33+
Use this option to customize how often a file is automatically saved in the editor. For previously saved files, Visual Studio saves a copy of the file in ***%LocalAppData%\Microsoft\VisualStudio\BackupFiles\\[projectname]***. If the file is new and you haven't saved it yet, Visual Studio autosaves it by using a randomly generated file name.
34+
35+
::: moniker-end
36+
37+
::: moniker range="vs-2019"
38+
39+
Use this option to customize how often a file is automatically saved in the editor. For previously saved files, Visual Studio 2019 version 16.2 and later saves a copy of the file in ***%LocalAppData%\Microsoft\VisualStudio\BackupFiles\\[projectname]***. If the file is new and you haven't saved it yet, Visual Studio autosaves it by using a randomly generated file name.
40+
41+
> [!NOTE]
42+
> If you are using Visual Studio 2019 version 16.1 or earlier, the file location is *%USERPROFILE%\Documents\Visual Studio [version]\Backup Files\\[projectname]*. For more information, see the [Visual Studio 2019 Release Notes History](/visualstudio/releases/2019/release-notes-history/) page.
43+
44+
::: moniker-end
45+
46+
1. Specify a value under the **Keep AutoRecover information for [n] days** option.
47+
48+
Use this option to specify how long Visual Studio keeps files created for autorecovery.
49+
50+
### See also
51+
52+
- [Options dialog box](../../ide/reference/options-dialog-box-visual-studio.md)

docs/ide/reference/autorecover-environment-options-dialog-box.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

docs/toc.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,8 @@
285285
href: ide/template-parameters.md
286286
- name: 64-bit support
287287
href: ide/visual-studio-ide-64-bit-support.md
288+
- name: Set AutoRecover options
289+
href: ide/autorecover-environment-options-dialog-box.md
288290
- name: Develop without projects or solutions
289291
items:
290292
- name: 'How to: Develop without a project'
@@ -918,8 +920,6 @@
918920
href: ide/reference/general-environment-options-dialog-box.md
919921
- name: Accounts
920922
href: ide/reference/accounts-environment-options-dialog-box.md
921-
- name: AutoRecover
922-
href: ide/reference/autorecover-environment-options-dialog-box.md
923923
- name: Documents
924924
href: ide/reference/documents-environment-options-dialog-box.md
925925
- name: Extensions

0 commit comments

Comments
 (0)