Sign in to Visual Studio on Windows
Applies to: Visual Studio
Visual Studio for Mac
Visual Studio Code
In this article, you'll learn how to sign in to Visual Studio, add and switch user accounts, update your profile, sign out of your account, and the benefits to signing in. If you are looking to learn how to use multiple accounts for sign-ins, check out our article, Access multiple accounts associated with the Visual Studio sign-in account.
You can get subscription support and search the frequently asked questions about subscriptions, accounts, and billing on our Subscription support page.
Sign in with a Microsoft or organizational account
Launch Visual Studio. When you open Visual Studio for the first time, you're asked to sign in and provide some basic registration information.
Note
If you choose not to sign in when you first open Visual Studio, it's easy to do so later. Look for the Sign in link in the upper-right corner of the Visual Studio environment.
Launch Visual Studio. When you open Visual Studio for the first time, you're asked to sign in and provide some basic registration information.
Note
If you choose not to sign in when you first open Visual Studio, it's easy to do so later. Look for the Sign in link in the upper-right corner of the Visual Studio environment.
Choose a Microsoft account or a work or school account. If you don't have one, you can create a Microsoft account for free.
Choose your preferred color theme and other UI settings. Visual Studio remembers these settings and synchronizes them across all Visual Studio environments you have signed in to. You can change the settings later if you open the Tools > Options menu in Visual Studio.
You can see that you're successfully signed in the upper-right corner of the Visual Studio environment. Unless you sign out, you're automatically signed in to Visual Studio whenever you start it, and any changes to synchronized settings are automatically applied.
Benefits: why sign in?
While you don't have to sign in, there are many advantages to doing so.
Benefit | Description |
---|---|
Extend your Visual Studio trial period | Use Visual Studio Professional or Visual Studio Enterprise for an additional 90 days, instead of being limited to the trial period of 30 days. |
Unlock Visual Studio | Unlock Visual Studio if you use an account that's associated with a Visual Studio subscription or an Azure DevOps organization. |
Synchronize your settings | Settings that you customize, such as key bindings, window layout, and color theme, apply immediately when you sign in to Visual Studio on any device. |
Auto-connect to Azure services | Connect to services, such as Azure and Azure DevOps Services, in the IDE without prompting again for credentials for the same account. |
Use Community edition without interruptions | While it's not required to sign in, you might periodically get prompts to sign-in if you haven't done so. Please sign in to the IDE to continue using Visual Studio Community without interruptions. |
Get 'Visual Studio Dev Essentials' | This program includes free software, training, support, and more. |
Update your account profile
- Go to File > Account Settings... and select the Manage Visual Studio profile link.
- In the browser window, select Edit profile and change the settings that you want.
- When you're done, select Save changes.
Add and switch user accounts
If you have multiple Microsoft accounts and/or work or school accounts, you can add them all to Visual Studio so that you can access the resources from any account without having to sign in to it separately.
After you add multiple accounts on one machine, that set of accounts roams with you if you sign in to Visual Studio on another machine.
Note
Although the account names roam, the credentials do not. You'll be prompted to enter credentials for those other accounts the first time you attempt to use their resources on a new machine.
Add an additional account to Visual Studio
To add an additional account to Visual Studio:
- Choose File > Account Settings.
- From All Accounts, choose an account by using the + or the Add dropdown.
- On the Sign in to your account page, select the account or choose Use another account. Follow the prompts to enter the new account credentials.
(Optional) Now you use the Add Connected Service dialog and see the Azure services associated with the account you just added. You should see all the services associated with the specified subscription. Even though you're not currently signed into Visual Studio with the second account, you are signed in to that account's services and resources. Learn more about accessing the resources associated with accounts in Visual Studio.
To add an additional account to Visual Studio:
- Select the icon with your profile name in the upper-right corner of the Visual Studio environment.
- Select Add another account and then choose an account to sign into.
- On the Sign in to your account page, select the account or choose Use another account. Follow the prompts to enter the new account credentials.
You can also add an additional account from the Account settings dialog:
- Select the icon with your profile name in the upper-right corner of the Visual Studio environment. Then, select Account settings to manage your accounts. You can also open the Account Settings dialog by going to File > Account Settings....
- From All Accounts, choose an account by using the + Add dropdown.
- On the Sign in to your account page, select the account or choose Use another account. Follow the prompts to enter the new account credentials.
Add a GitHub account to Visual Studio
Starting with Visual Studio 2019 version 16.8, you’ll be able to add both GitHub and GitHub Enterprise accounts to your keychain. You’ll be able to add and leverage them just as you do with Microsoft accounts, which means that you’ll have an easier time accessing your GitHub resources across Visual Studio.
You can add both GitHub and GitHub Enterprise accounts to your keychain. You can add and leverage them just as you do with Microsoft accounts, enabling you to easily access your GitHub resources across Visual Studio.
For detailed instructions, see Work with GitHub accounts in Visual Studio.
Add a multi-factor authentication (MFA) enabled account to Visual Studio
Starting with Visual Studio 2019 version 16.6, users can access resources secured via CA policies such as MFA. To use this enhanced workflow, you'll need to opt into using your system's default web browser as the mechanism to add and reauthenticate Visual Studio accounts. For detailed instructions, see Work with accounts that require multi-factor authentication (MFA)
You can also access resources secured via CA policies such as MFA. To use this enhanced workflow, you'll need to opt into using your system's default web browser as the mechanism to add and reauthenticate Visual Studio accounts. For detailed instructions, see Work with accounts that require multi-factor authentication (MFA)
Sign out of your account
- Select the icon with your profile name in the upper-right corner of the Visual Studio environment.
- Select Account settings.....
- Select Sign out.
Select the icon with your profile name in the upper-right corner of the Visual Studio environment and then select Sign out.
You can also sign out by using the Account settings dialog. Select Account settings and then select Sign out. You can also open the Account Settings dialog by going to File > Account Settings....
Feedback
Submit and view feedback for