Enabling Add to Source Control Option for New Project Dialog in Visual Studio

By | April 13, 2018

You can create a new Git repository at the same time we create the new project from the New Project Dialog Window. In fact, not only Git Repository, you can also add the source code for Team Services as well while creating a new project. In the previous post – Create New Git Repository While Creating New Project in Visual Studio we have seen how to achieve the same. In case you don’t see this option in the add new dialog window, you need to enable it by choosing specific source control option.

Source Control Options

Source Control Options

 

If you don’t see the checkbox for adding to source control – Git or Visual Studio Team Services, you can enable this from Options settings.
From the main menu, Tools -> Options and then navigate to Source Control option. Under the Plug-in Selection, you will find it is already set to “None”.

Plug-in Settings

Plug-in Settings

From the plug-in selection drop-down, you can choose either Git or Visual Studio Team Foundation Server. Visual Studio will enable the plugin for the specific source control accordingly.

Selecting Source Control Plug-in

Selecting Source Control Plug-in

Once you change the plugin option you can go back and check the new project dialog windows with reflected checkboxes for enabling source control during project creation.
Following Comparing snapshot showing the differences when two different plugins are selected in Visual Studio.

New Project Window with Different Plug-in Options

New Project Window with Different Plug-in Options

Hope this helps

Leave a Reply