Skip to content

Commit 3739bd1

Browse files
committed
Merged main into live
2 parents dfd0a78 + c33179a commit 3739bd1

10 files changed

+87
-94
lines changed

.openpublishing.redirection.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
{
22
"redirections": [
3+
{
4+
"source_path": "docs/ide/reference/miscellaneous-files.md",
5+
"redirect_url": "/visualstudio/ide/miscellaneous-files",
6+
"redirect_document_id": false
7+
},
8+
{
9+
"source_path": "docs/ide/reference/autorecover-environment-options-dialog-box.md",
10+
"redirect_url": "/visualstudio/ide/autorecover-environment-options-dialog-box",
11+
"redirect_document_id": false
12+
},
13+
{
14+
"source_path": "docs/ide/reference/environment-preview-features-options.md",
15+
"redirect_url": "/previous-versions/visualstudio/visual-studio-2017/ide/reference/environment-preview-features-options",
16+
"redirect_document_id": false
17+
},
318
{
419
"source_path": "docs/ide/reference/options-text-editor-file-extension.md",
520
"redirect_url": "/previous-versions/visualstudio/visual-studio-2017/ide/reference/options-text-editor-file-extension",
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 unsaved, 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 unsaved, Visual Studio autosaves it by using a randomly generated file name.
40+
41+
> [!NOTE]
42+
> If you're 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)
36.1 KB
Loading
Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
2-
title: Miscellaneous files
3-
description: Learn how to work on files that are not included in a Visual Studio project or solution.
4-
ms.date: 11/04/2016
2+
title: Work with miscellaneous files
3+
description: Learn how to work on files that aren't included in a Visual Studio project or solution.
4+
ms.date: 8/7/2025
55
ms.topic: reference
66
f1_keywords:
77
- VS.newfile
@@ -19,31 +19,31 @@ ms.author: meghaanand
1919
manager: mijacobs
2020
ms.subservice: general-ide
2121
---
22-
# Miscellaneous files
22+
# Work with miscellaneous files
2323

24-
You might want to use the Visual Studio editor to work on files independently from a project or solution. While you have a solution open, you can open and modify files without adding them to a solution or to a project. Files you want to work with independently are called miscellaneous files. Miscellaneous files are external to solutions and projects, are not included in builds, and cannot be included with a solution under source control.
24+
You might want to use the Visual Studio editor to work on files independently from a project or solution. While you have a solution open, you can open and modify files without adding them to a solution or to a project. Files you want to work with independently are called miscellaneous files. Miscellaneous files are external to solutions and projects, aren't included in builds, and can't be included with a solution under source control.
2525

2626
Opening files independently from a project or solution is useful for a variety of reasons. You might have a file that you want to view while developing a project-based solution but that's not integral to the solution's development. Common examples include development notes or instructions, database schema, and code clips. In addition, you might want to create a stand-alone file.
2727

28-
![Solutions Projects](../../ide/reference/media/projects_solutions_misc.gif)
28+
![Solutions Projects](../ide/media/projects_solutions_misc.gif)
2929

30-
Solution Explorer can display a **Miscellaneous Files** folder for the files if the options for the folder are enabled. The options can be set from the [Documents, Environment, Options Dialog Box](../../ide/reference/documents-environment-options-dialog-box.md). After you close a miscellaneous file, it is not associated with any particular solution or project unless an option is enabled for that as well.
30+
Solution Explorer can display a **Miscellaneous Files** folder for the files if the options for the folder are enabled. The options can be set from the [Documents, Environment, Options Dialog Box](../ide/reference/documents-environment-options-dialog-box.md). After you close a miscellaneous file, it is not associated with any particular solution or project unless an option is enabled for that as well.
3131

3232
The **Miscellaneous Files** folder represents the files as links. Although this folder is not part of a solution, when you open a solution, some or all of the miscellaneous files that were opened when the solution was last closed are reopened, depending upon the settings for the folder.
3333

3434
> [!NOTE]
35-
> Some of the files that do not appear in the **Miscellaneous Files** folder are files that you cannot modify within the IDE, such as .zip files and .doc files. The IDE doesn't track files that can only be modified through an external editor.
35+
> Some of the files that don't appear in the **Miscellaneous Files** folder are files that you can't modify within the IDE, such as .zip files and .doc files. The IDE doesn't track files that can only be modified through an external editor.
3636
3737
## Commands available in the IDE
3838

3939
The menus, toolbars, and the commands they contain change based on the format of the file you open. When you open a text file, for example, the Text Editor toolbar appears and its commands are available. If you then open an XML Schema file, the XML Schema toolbar appears. While editing your XML Schema, the Text Editor toolbar's commands (or the toolbar itself) are unavailable. The XML Schema is the active window and as such, has current selection context. When you switch between a project file and a miscellaneous file, all project-related commands disappear and only those that are directly related to the miscellaneous file appear.
4040

4141
## Folder display options
4242

43-
You can set display options for the **Miscellaneous Files** folder so that the folder appears even though you have not opened any miscellaneous files. The solution file does not permanently manage a list of miscellaneous files. It uses an optional feature that allows it to remember a per-user, most recently used (MRU) list of files.
43+
You can set display options for the **Miscellaneous Files** folder so that the folder appears even though you have not opened any miscellaneous files. The solution file doesn't permanently manage a list of miscellaneous files. It uses an optional feature that allows it to remember a per-user, most recently used (MRU) list of files.
4444

4545
## See also
4646

47-
- [Develop code in Visual Studio without projects or solutions](../develop-code-in-visual-studio-without-projects-or-solutions.md)
48-
- [Solutions and Projects](../../ide/solutions-and-projects-in-visual-studio.md)
49-
- [Documents, Environment, Options Dialog Box](../../ide/reference/documents-environment-options-dialog-box.md)
47+
- [Develop code in Visual Studio without projects or solutions](../ide/develop-code-in-visual-studio-without-projects-or-solutions.md)
48+
- [Solutions and Projects](../ide/solutions-and-projects-in-visual-studio.md)
49+
- [Documents, Environment, Options Dialog Box](../ide/reference/documents-environment-options-dialog-box.md)

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

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

docs/ide/reference/environment-preview-features-options.md

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

docs/ide/understanding-build-configurations.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: Understand build configurations
33
description: Discover how to work with build configurations when you need to build your projects with different settings in Visual Studio.
4-
ms.date: 11/14/2024
4+
ms.date: 8/7/2025
55
ms.subservice: compile-build
66
ms.topic: conceptual
77
f1_keywords:
@@ -67,9 +67,11 @@ The configuration and platform that a project targets are used together to speci
6767
![Screenshot of project designer configurations.](media/understanding-build-configurations/project-designer-configuration.png)
6868
:::moniker-end
6969
:::moniker range=">=vs-2022"
70-
![Screenshot of project designer configurations.](media/vs-2022/build-configuration-project-designer-configuration.png)
70+
![Screenshot of project designer configurations.](media/vs-2022/understanding-build-configurations/project-designer-build-configurations.png)
7171
:::moniker-end
7272

73+
The predefined constants for each configuration are shown underneath the textbox where you can enter your own. These predefined constants are defined by the SDK your project uses. To see where these properties are defined, you can look for how the MSBuild property `DefineConstants` is defined and modified in the .NET SDK installation folder where `.props` and `.targets` files are located. The SDKs provide MSBuild properties that you can set in the project file to disable the predefined definitions; for example, see [DisableImplicitFrameworkDefines](/dotnet/core/project-sdk/msbuild-props#disableimplicitframeworkdefines).
74+
7375
## How Visual Studio associates project configurations with solution configurations
7476

7577
When you define a new solution configuration and don't copy settings from an existing one, Visual Studio uses the following criteria to associate the existing project configurations with the new solution configuration. The criteria are evaluated in the order shown.

docs/toc.yml

Lines changed: 4 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -285,6 +285,10 @@
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
290+
- name: Work with miscellaneous files
291+
href: ide/miscellaneous-files.md
288292
- name: Develop without projects or solutions
289293
items:
290294
- name: 'How to: Develop without a project'
@@ -908,8 +912,6 @@
908912
href: ide/reference/error-list-window.md
909913
- name: Paste JSON or XML as classes
910914
href: ide/reference/paste-json-xml.md
911-
- name: Miscellaneous files
912-
href: ide/reference/miscellaneous-files.md
913915
- name: Options
914916
items:
915917
- name: Environment
@@ -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
@@ -930,8 +930,6 @@
930930
href: ide/reference/fonts-and-colors-environment-options-dialog-box.md
931931
- name: Import and Export Settings
932932
href: ide/reference/import-and-export-settings-environment-options-dialog-box.md
933-
- name: Preview Features
934-
href: ide/reference/environment-preview-features-options.md
935933
- name: Trust Settings
936934
href: ide/reference/trust-settings.md
937935
- name: Notifications window

0 commit comments

Comments
 (0)