Udostępnij za pośrednictwem


How to: Enable or Disable Source Control

Source control in Visual Studio is available only if a valid source control plug-in is installed and registered for use on your computer. The plug-in is registered during installation of the third-party software. Visual Studio uses this registration to find out about the plug-in and the location of its default databases each time you open the Visual Studio IDE. It lists all available plug-in in the Plug-in Selection tab of the Source Control entry in the Options dialog box.

If you have no compatible source control plug-ins installed on your computer, source control for Visual Studio is not enabled. You will see no Source Control entry on the File menu.

Warning

You can use a source control plug-in in Visual Studio and the corresponding standalone source control application to manage the same project or solution. However, checking out items from both places to the same working folder is not recommended. Doing so can lead to situations in which solutions and projects cannot be accessed from source control.

To enable a particular source control plug-in

  1. In Visual Studio, on the Tools menu, click Options.

  2. In the Options dialog box, click Source Control, then click Plug-in Selection.

  3. Select the source control plug-in that you want to use.

  4. Click OK.

To disable source control completely

  1. In Visual Studio, on the Tools menu, click Options.

  2. In the Options dialog box, click Source Control, then click Plug-in Selection.

  3. Select None in the Current source control plug-in box.

  4. Click OK.

See Also

Reference

Plug-in Tabs for Source Control (Options Dialog Box)

Other Resources

Performing Source Control Tasks