/SafeMode (devenv.exe)

Applies to: yesVisual Studio noVisual Studio for Mac noVisual Studio Code

Starts Visual Studio in safe mode, loading only the default environment and services.

Syntax

devenv /SafeMode

Remarks

This switch prevents all third-party VSPackages from loading when Visual Studio starts, allowing stable execution.

Example

The following example starts Visual Studio in safe mode.

devenv /safemode

See also