Udostępnij za pośrednictwem


/ResetSettings (devenv.exe)

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

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