How to fully reset all Visual Studio settings to factory defaults?

Author: Hou

Feb. 04, 2024

12

0

Tags: Beauty & Personal Care

I have Microsoft Visual Studio 2019 and Visual Studio 2022 installed.

This is Community Edition, I am logged in and registered with my Microsoft Account. It is important.

I removed all "Visual Studio*" directories in my "C:\Users*".

After restarting Visual Studio it immediately shows the dialog to log into my Microsoft Account. I log in and then it imports some of my previous settings. For example - my old color theme is applied. The one particular offending setting than doesn't show in UI is still set.

I'm afraid that uninstalling and reinstalling the program won't help either.

The setting I want to change is "Enable new Project Properties UI" - it was available in 2022 Preview 1. After upgrading to 2022 Preview 2 it disappeared from the settings dialog and the Project Properties dialog crashes. I'm stuck with broken Preview 2 but I know if I reset the settings it would work. The problem is I don't know how to reset settings so they would not be recovered from the cloud.

I tried so far:

  • devenv /ResetSettings
  • resetting the settings with Import/Export menu
  • resetting the settings from Visual Studio Installer Repair option

None of those actions even changed my theme from dark to light.

/ResetSettings (devenv.exe)

In this article

Restores Visual Studio default settings and automatically launches the Visual Studio IDE. This switch optionally resets the settings to a specified settings file (*.vssettings).

The default settings come from the profile that was selected when Visual Studio was first launched.

Tip

To learn how to reset settings using the integrated development environment (IDE), see Reset settings.

Syntax

devenv /ResetSettings [SettingsFile|DefaultCollectionSpecifier]

Arguments

  • SettingsFile

    Optional. The full path and name of the .vssettings file to apply to Visual Studio.

  • DefaultCollectionSpecifier

    Optional. A specifier representing a default collection of settings to restore. Choose one of the default collection specifiers listed in the table.

    Default collection name Collection specifier General General JavaScript JavaScript Visual Basic VB Visual C# CSharp Visual C++ VC Web Development Web Web Development (Code Only) WebCode

Remarks

If no SettingsFile is specified, the IDE opens using the existing settings.

Example

The first example applies the settings stored in the file MySettings.vssettings.

The second example restores the Visual C# default profile.

The third example will also close Visual Studio after apply the settings. You can append /Command "File.Exit".

devenv /ResetSettings "%USERPROFILE%\MySettings.vssettings"

devenv /ResetSettings CSharp

devenv /NoSplash /ResetSettings General /Command Exit 

See also

How to fully reset all Visual Studio settings to factory defaults?

-ResetSettings (devenv.exe) - Visual Studio (Windows)

Comments

Please Join Us to post.

0

0/2000

Guest Posts

If you are interested in sending in a Guest Blogger Submission,welcome to write for us!

Your Name: (required)

Your Email: (required)

Subject:

Your Message: (required)