-
Notifications
You must be signed in to change notification settings - Fork 5.5k
Add instructions for using multiple GH accounts #9072
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 1 commit
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -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. | ||
|
|
||
|  | ||
|
|
||
| - 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**. | ||
|
|
||
|  | ||
|
|
||
| - 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)`) | ||
| 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** | ||
|
||
| 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 | ||
|
||
|
|
||
| ## Remove AI features from VS Code | ||
|
|
||
|
|
||
There was a problem hiding this comment.
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)
There was a problem hiding this comment.
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.