How to reset Visual Studio to default settings in two ways

Lionsure 2020-03-09 Original by the website

If there is a problem with the Visual Studio or the settings are disordered, you can restore the default settings to return to the state when the installation was successful, thereby solving the problems. There are two ways to restore the default settings of Visual Studio, namely: "Import and Export Settings" and command.

 

I, How to reset Visual Studio to default settings with "Import and Export Settings"(Applicable to all versions, including Visual Studio 2019)

1. Quick steps

Tools → Import and export settings → Reset all settings → Next → Select "No, just reset settings, overwriting my current settings", Next → Select "Development language to reset(eg, Visual C#)" → Finish.

 

2. Detailed steps

1) Select "Tools → Import and Export Settings", as shown in Figure 1:

How to reset Visual Studio to default settings in two ways

Figure 1

2) Select "Reset all settings" in the "Import and Export Settings Wizard" dialog box, as shown in Figure 2:

Visual Studio Import and Export Settings

Figure 2

3) Click "Next" to open the "Save current settings" dialog box, as shown in Figure 3:

Visual Studio Save current settings

Figure 3

4) If you want to save the current settings, select "Yes, save my current settings"; otherwise, select "No, just reset settings, overwriting my current settings"; We choose the latter, click "Next", open a dialog box as shown in Figure 4:

Visual Studio, No, just reset settings, overwriting my current settings

Figure 4

 

5) Select the development language to reset, as shown in Figure 4, select "Visual C#", and finally click "Finish".

 

 

II, How to reset Visual Studio to default settings with command

(1) Visual Studio 2010

1. Select "Start → All Programs → Microsoft Visual Studio 2010 → Visual Studio Tools → Visual Studio Command Prompt (2010)" to open the "Command Prompt"  dialog box.

2. Enter devenv /ResetSettings(or copy this command, go to the Command Prompt dialog box, right-click → paste), as shown in Figure 5:

How to reset Visual Studio to default settings with command

Figure 5

3. After press Enter on your keyboard for a while, the Visual Studio default settings will be reset.

Tip: Although Visual Studio 2010 is taken as an example, other versions such as Visual Studio 2008 and Visual Studio 2012 are also applicable. Just follow the steps above.

 

(2) Visual Studio 2019

1. Select Start → Visual Studio 2019(folder) → Developer Command Prompt for Visual Studio 2019(or Developer PowerShell for Visual Studio 2019), and open the Command Prompt dialog box.

2. Enter devenv /ResetSettings(or copy this command, go to the Command Prompt dialog box and right-click), as shown in Figure 6:

How to reset Visual Studio 2019 to default settings with command

Figure 6

 

3. Press Enter to start resetting the default settings of Visual Studio. After a while, it is complete. This applies to Windows 10 and Windows Server 2019.