<commit_before># Visual Studio Team Services Extension
The extension allows you to manage your pull requests for your Team Services Git repositories as well as monitor builds and work items for your team project.  It  will use your Git repository information to connect to Team Services.

![Visual Studio Team Services extension](assets/vscode.png)

Here is the [Walkthrough of the Team Services extension for Visual Studio Code](https://www.youtube.com/watch?v=tpjj5i8f6BE) video that shows many of the features of the extension.

## Ensure you have a Team Services account
If you do not already have a Team Services account, [sign up for Team Services](https://www.visualstudio.com/en-us/get-started/setup/sign-up-for-visual-studio-team-services).

## Install the Extension
First, you will need to install [Visual Studio Code](https://code.visualstudio.com/download) `0.10.8` or later.  Then, in the Visual Studio Code Command Palette (`F1`) select `Install Extension` and choose `Visual Studio Team Services` by Microsoft.

You'll also need to create a personal access token on your Team Services account and add it to Visual Studio Code's user settings.  The extension uses basic authentication with your personal access token in the password field to authenticate you with Team Services.

To create the token and add it to your user settings:

1. Go [here](https://www.visualstudio.com/en-us/get-started/setup/use-personal-access-tokens-to-authenticate) to learn how to create a personal access token for your account.
     - When you create your token, ensure you create it for **All Scopes**.
     - If you would rather not use *All Scopes*, you can enable **Build (read)**, **Code (read)** and **Work items (read)**.  If you do this, note that the Build Status indicator will not function properly until an upcoming update to Team Services.  Once that update is available, the Build Status indicator will begin to function normally and we will update these instructions.
2. Open Visual Studio Code's user settings (**File > Preferences > User Settings**) and add an entry similar to the one below.

  ```javascript
    "team.accessTokens": [
        {
            "account": "your-account-name",
            "token": "<PASSWORD>"
        }
    ]
  ```

3. Replace **your-account-name** with the name of your Team Services account.  For example, if your Team Services URL is `https://fabrikam.visualstudio.com`, your account name is **fabrikam**.
4. Replace **access-token** with the token you created earlier.

If you would like to add multiple accounts, simply add an additional entry per account.

The extension also supports a *global access token*.  A global access token is one that can be used across all of the Team Services accounts that you have access to (so you will not need to add a token per account in your User Settings).  To create a global token, set the "Accounts" value on the "Create a personal access token" page to "All accessible accounts".  After creating that global token, add an entry to `team.accessTokens` similar to the following:
```javascript
    "team.accessTokens": [
        {<commit_msg>Remove confusing statement about basic authentication<commit_after># Visual Studio Team Services Extension
The extension allows you to manage your pull requests for your Team Services Git repositories as well as monitor builds and work items for your team project.  It  will use your Git repository information to connect to Team Services.

![Visual Studio Team Services extension](assets/vscode.png)

Here is the [Walkthrough of the Team Services extension for Visual Studio Code](https://www.youtube.com/watch?v=tpjj5i8f6BE) video that shows many of the features of the extension.

## Ensure you have a Team Services account
If you do not already have a Team Services account, [sign up for Team Services](https://www.visualstudio.com/en-us/get-started/setup/sign-up-for-visual-studio-team-services).

## Install the Extension
First, you will need to install [Visual Studio Code](https://code.visualstudio.com/download) `0.10.8` or later.  Then, in the Visual Studio Code Command Palette (`F1`) select `Install Extension` and choose `Visual Studio Team Services` by Microsoft.

You'll also need to create a personal access token on your Team Services account and add it to Visual Studio Code's user settings.

To create the token and add it to your user settings:

1. Go [here](https://www.visualstudio.com/en-us/get-started/setup/use-personal-access-tokens-to-authenticate) to learn how to create a personal access token for your account.
     - When you create your token, ensure you create it for **All Scopes**.
     - If you would rather not use *All Scopes*, you can enable **Build (read)**, **Code (read)** and **Work items (read)**.  If you do this, note that the Build Status indicator will not function properly until an upcoming update to Team Services.  Once that update is available, the Build Status indicator will begin to function normally and we will update these instructions.
2. Open Visual Studio Code's user settings (**File > Preferences > User Settings**) and add an entry similar to the one below.

  ```javascript
    "team.accessTokens": [
        {
            "account": "your-account-name",
            "token": "<PASSWORD>-token"
        }
    ]
  ```

3. Replace **your-account-name** with the name of your Team Services account.  For example, if your Team Services URL is `https://fabrikam.visualstudio.com`, your account name is **fabrikam**.
4. Replace **access-token** with the token you created earlier.

If you would like to add multiple accounts, simply add an additional entry per account.

The extension also supports a *global access token*.  A global access token is one that can be used across all of the Team Services accounts that you have access to (so you will not need to add a token per account in your User Settings).  To create a global token, set the "Accounts" value on the "Create a personal access token" page to "All accessible accounts".  After creating that global token, add an entry to `team.accessTokens` similar to the following:
```javascript
    "team.accessTokens": [
        {
{'fraction_non_alphanumeric': 0.07773279352226721, 'fraction_numerical': 0.0038866396761133605, 'mean_word_length': 4.049877350776779, 'pattern_counts': {'":': 8, '<': 5, '<?xml version=': 0, '>': 9, 'https://': 10, 'lorem ipsum': 0, 'www.': 6, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 2, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '2692252', 'n_tokens_mistral': 1553, 'n_tokens_neox': 1520, 'n_words': 841}