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

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

Source: Devenv command-line switches