---
title: "How to connect TFS in Visual Studio code"  
description: "How to connect TFS in Visual Studio code"  
author: "Steilla Mitchel"  
published: 2023-08-02  
updated: 2023-08-03  
canonical: https://www.mindstick.com/forum/159438/how-to-connect-tfs-in-visual-studio-code  
category: "visual studio"  
tags: ["team foundation server", "visual studio"]  
reading_time: 2 minutes  

---

# How to connect TFS in Visual Studio code

How to [connect TFS](https://www.mindstick.com/forum/159437/how-to-connect-tfs-online-using-pat-or-oaut) in [Visual Studio](https://www.mindstick.com/articles/12378/visual-studio-for-mac-is-out-of-beta-preview-now-officially-available) [code](https://yourviews.mindstick.com/view/85458/alan-turing-the-mastermind-behind-cracking-the-enigma-code-during-world-war-ii)

## Replies

### Reply by Aryan Kumar

Sure, here are the steps on how to [connect](https://www.mindstick.com/articles/12810/how-to-connect-tablet-to-external-monitor-or-flat-screen-tv-using-computer-adapters) [TFS](https://www.mindstick.com/forum/440/tfs-installation-and-configuration-using-vs-2010) in [Visual](https://yourviews.mindstick.com/audio/1147/through-the-lens-a-visual-exploration-of-the-world) [Studio Code](https://www.mindstick.com/forum/159440/how-to-clone-a-tfvc-repository-of-visualstudio-com-using-visual-studio-code):

1. Open Visual Studio Code.
2. Click on the **Extensions** icon in the Activity Bar.
3. Search for the **Azure Repos** extension.
4. Install the extension.
5. Open a local folder in Visual Studio Code.
6. Click on the **Source Control** icon in the Activity Bar.
7. Click on the **Team Explorer** button.
8. In the **Team Explorer** pane, click on the **Connect** button.
9. In the **Connect to Team Foundation Server** dialog box, enter the URL of your TFS server.
10. Enter your username and password.
11. Click on the **Connect** button.

Once you have connected to TFS, you will be able to see all of the projects that are available on your TFS server. You can also open and work on files in these projects.

Here are some additional things to keep in mind when connecting TFS in Visual Studio Code:

- You will need to have the Azure Repos extension installed in Visual Studio Code in order to connect to TFS.
- The URL of your TFS server should be in the following format: `https://<tfs_server>/tfs/`.
- If you are connecting to a TFS server that is located in a different organization or project, you will need to specify the organization and project name in the URL.
- You can also connect to TFS using the `tf.exe` command from the command line.


---

Original Source: https://www.mindstick.com/forum/159438/how-to-connect-tfs-in-visual-studio-code

Copyright © MindStick Software Pvt. Ltd. This Markdown version is provided for developers, AI systems, and offline reading.
