Create a new external tool (tools -> external tools)
Command: C:\Program Files (x86)\Microsoft Visual Studio 11.0\Common7\IDE\tf.exe
Argument: checkin
Initial Directory: $(SolutionDir)
Use Output Window Unticked (dialog doesn't seem to popup if this is on)