Skip to content
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
33 changes: 30 additions & 3 deletions docs/copilot/setup.md
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,42 @@ If your Copilot subscription is associated with another GitHub account, follow t

1. Sign in to your GitHub account using any of the following methods:

- Select **Sign in to use Copilot** from the Copilot menu in the Status Bar.
* Select **Sign in to use Copilot** from the Copilot menu in the Status Bar.

![Sign in to use Copilot from the Copilot status menu.](images/setup/copilot-signedout-sign-in.png)

- Select the **Accounts** menu in the Activity Bar, and then select **Sign in with GitHub to use GitHub Copilot**.
* Select the **Accounts** menu in the Activity Bar, and then select **Sign in with GitHub to use GitHub Copilot**.

![Accounts menu in VS Code, showing the option to sign in with GitHub to use GitHub Copilot.](images/setup/vscode-accounts-menu.png)

- Run the **GitHub Copilot: Sign in** command in the Command Palette (`kb(workbench.action.showCommands)`).
* Run the **GitHub Copilot: Sign in** command in the Command Palette (`kb(workbench.action.showCommands)`).

## Use a different GitHub account per workspace or profile

You can use different GitHub accounts for Copilot per VS Code workspace or profile. This is useful if you use Copilot with different accounts for work and personal projects, or if you want to use different accounts for different extensions that use GitHub authentication.

Follow these steps to configure which GitHub account to use for Copilot. This configuration is saved per workspace and per profile.

* For GitHub.com accounts:

1. In the Accounts menu in the Activity Bar, select **Manage Extension Account Preferences**
1. Select **GitHub Copilot Chat** from the list of extensions
1. Choose the GitHub account you want to use for Copilot in the current workspace and profile

* For GHE.com accounts:

1. Run **Preferences: Open User Settings (JSON)** or **Preferences: Open Workspace Settings (JSON)** from the Command Palette (`kb(workbench.action.showCommands)`)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is exactly what we wanna call out here.

One thing I notice is that this is the first and only reference to signing in to GHE.com in this doc which makes me worried that for folks who want to sign in with their GHE.com account will set this instead of going through the normal flow (Continue with GHE.com)

Image

NOTE: this sets that setting but at the user level

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for pointing that out. I'll make sure to clarify this more.

1. Add the following setting to specify GitHub Enterprise as the authentication provider for Copilot:

```json
"github.copilot.advanced": {
"authProvider": "github-enterprise"
}
```

1. In the Accounts menu in the Activity Bar, select **Manage Extension Account Preferences**
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It's unlikely the user will have multiple GHE accounts. I think maybe this can be simplified to "re-sign in to Copilot"

1. Select **GitHub Copilot Chat** from the list of extensions
1. Choose the GitHub Enterprise account you want to use for Copilot in the current workspace and profile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These look like leftovers from the previous wording

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Ow, I should stop pretending I'm in Pacific timezone... :)


## Remove AI features from VS Code

Expand Down
Loading