How to integrate Microsoft Visual Studio 2010 with Team Foundation Server?

You can follow the below steps to connect VS 2010 to to TFS Hosted:

1. Open Visual Studio 2010. Click "Connect to Team Foundation Server..." 
under the menu "Team":

2. Click on "Servers...", then click on "Add...", enter the Server  URL of your TFSHosted account. For example: "".

If you forgot the url, you can  check it in the hosted portal.

3. Choose the project that you have permission to and click "Connect"

4. Now you are connected to TFS and ready to work:

Please NOTE:

If your installation of Visual Studio 2010 doesn’t include Team Explorer, you will need to download and install
Microsoft Visual Studio Team Explorer 2010 - ISO