/ResetSettings (devenv.exe)

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

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 settings 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.

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

devenv /resetsettings CSharp

See also