How to: Enable Automatic Check-ins
You can configure Visual Studio to automatically check in your changes to source control when you close a solution. Automating the check-in process ensures that your latest work becomes periodically available to other team members, even if you forget to check it in manually.
To enable automatic checkins
In Visual Studio, on the Tools menu, click Options.
In the Options dialog box, click Source Control, then click Environment.
Select the Check in everything when closing a solution or project check box.
Click OK.
See Also
Reference
Plug-in Tabs for Source Control (Options Dialog Box)