12

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.

Harry
  • 745
  • 3
  • 7
  • 18

1 Answers1

20

There are 2 switches that you can try to restore the settings to default from the command line:

  • /ResetSettings: Restores Visual Studio default settings
  • /ResetUserData: not documented, but it resets the user data to the default values.
devenv.exe /ResetSettings
devenv.exe /ResetUserData

You can try the /SafeMode switch which:

Starts Visual Studio in safe mode. This switch loads only the default environment, the default services, and the shipped versions of third-party packages.

devenv.exe /SafeMode

The path for devenv.exe can be found at: C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE

Source: Devenv command-line switches | Devenv path