1

I am the user (not the developer) of a Visual Studio 2022 extension which correctly uses the built-in WritableSettingsStore to store its settings (I verified this by looking at the extension's source code).

After extensively playing around with the extension's settings, I would like to restore it to its original state. Uninstalling and reinstalling didn't help, my modified settings were retained. I also don't want to reset all my Visual Studio settings or remove my complete user profile, I just want to reset this one extension.

Hence my question:

Where does the WritableSettingsStore physically store a Visual Studio Extensions's settings?

Heinzi
  • 167,459
  • 57
  • 363
  • 519

2 Answers2

0

It's stored in the same place where Visual Studio stores its own settings: in Visual Studio's private registry hive.

  1. Open the private registry hive with regedit.exe as described in the following question. Note: The correct path for Visual Studio 2022 is %LocalAppData%\Microsoft\VisualStudio\17.0_71c0f998\privateregistry.bin.

  2. The extension's settings are stored in the subkey Software\Microsoft\VisualStudio\17.0_71c0f998\NameOfTheExtension. Remove that key to reset the extension to its default settings.

  3. Don't forget to unload the hive as explained in the link in step 1.

Heinzi
  • 167,459
  • 57
  • 363
  • 519
0

You could Reset All Visual Studio Settings to Factory these ways:

  1. As suggested in the Microsoft Documentation, using Import and Export Settings Wizard.

  1. Or using Developer Command Prompt for VS 2022 and typing as advised here
  • /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

The First One didn't seem to work for me then I tried the second and it did.

Hope it helps you or others!