Skip to content

Commit

Permalink
Merge pull request #12741 from anandmeg/signin-update-ide
Browse files Browse the repository at this point in the history
Add steps to sign in from the IDE
  • Loading branch information
JillGrant615 authored Jun 28, 2024
2 parents 33f349a + 8430a16 commit 0187546
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 11 deletions.
2 changes: 1 addition & 1 deletion docs/ide/how-to-unlock-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Note that CA policies enabled on an account might impact the account state or li
## Update an expired license

If your subscription has expired and you no longer have access rights to Visual Studio, you must renew your subscription or add another account that has a subscription. To see more information about the license you are using, go to **File** > **Account Settings...** and look at the license information on the right side of the dialog. If you have another subscription associated with a different account, [add that account](signing-in-to-visual-studio.md#add-and-switch-user-accounts-to-visual-studio) to the **All Accounts** list on the left side of the dialog box by selecting the **Add an account** link.
If your subscription has expired and you no longer have access rights to Visual Studio, you must renew your subscription or add another account that has a subscription. To see more information about the license you are using, go to **File** > **Account Settings...** and look at the license information on the right side of the dialog. If you have another subscription associated with a different account, [add that account](signing-in-to-visual-studio.md#add-and-switch-user-accounts-in-visual-studio) to the **All Accounts** list on the left side of the dialog box by selecting the **Add an account** link.

## Get support

Expand Down
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ Use this option to specify whether to synchronize your settings across multiple

### Enable device code flow

When this option is selected, the behavior of Visual Studio changes when you select **Add an account** on the **File** > **Account Settings** page. Instead of seeing the **Sign in to your account** page, you're presented with a dialog box that gives you a URL and a code to paste into a web browser to sign in. This option is useful in cases where you can't sign in to Visual Studio in the regular manner, for example, if you use an older version of Internet Explorer, or if your firewall restricts access. For more information, see [Sign in to Visual Studio](../signing-in-to-visual-studio.md#add-and-switch-user-accounts-to-visual-studio).
When this option is selected, the behavior of Visual Studio changes when you select **Add an account** on the **File** > **Account Settings** page. Instead of seeing the **Sign in to your account** page, you're presented with a dialog box that gives you a URL and a code to paste into a web browser to sign in. This option is useful in cases where you can't sign in to Visual Studio in the regular manner, for example, if you use an older version of Internet Explorer, or if your firewall restricts access. For more information, see [Sign in to Visual Studio](../signing-in-to-visual-studio.md#add-and-switch-user-accounts-in-visual-studio).

## Registered Azure clouds

Expand Down
29 changes: 20 additions & 9 deletions docs/ide/signing-in-to-visual-studio.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: Sign in or switch Visual Studio accounts
titleSuffix: ""
description: Explore sign in concepts for working with Visual Studio, and find out how to sign in and how to add and switch user accounts.
ms.date: 11/23/2023
ms.date: 6/27/2024
ms.topic: how-to
author: anandmeg
ms.author: meghaanand
Expand All @@ -11,7 +11,7 @@ ms.subservice: general-ide
---
# Sign in or switch Visual Studio user accounts

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](sign-in-access-multiple-accounts.md).
In this article, you 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](sign-in-access-multiple-accounts.md).

You can get subscription support and search the frequently asked questions about subscriptions, accounts, and billing [on our Subscription support page](https://visualstudio.microsoft.com/subscriptions/support/).

Expand All @@ -23,7 +23,7 @@ You can sign in to your Microsoft or organizational account. To add another acc

::: moniker range="<=vs-2019"

1. Launch Visual Studio. When you open Visual Studio for the first time, you're asked to sign in and provide some basic registration information.
1. Launch Visual Studio. When you open Visual Studio for the first time, you're prompted to sign in and provide some basic registration information.

![Sign-in prompt](../ide/media/vs2019_signinpopup.png)

Expand All @@ -34,20 +34,31 @@ You can sign in to your Microsoft or organizational account. To add another acc

::: moniker range="vs-2022"

1. Launch Visual Studio. When you open Visual Studio for the first time, you're asked to sign in and provide some basic registration information.
1. Launch Visual Studio. When you open Visual Studio for the first time, you're prompted to sign in and provide some basic registration information.

![Sign-in prompt](../ide/media/vs-2022/visual-studio-sign-in-pop-up-vs-2022.png)

> [!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.
> If you choose to not 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](#sign-in-from-the-ide).
::: moniker-end

2. Choose a Microsoft account or a work or school account. If you don't have one, you can [create a Microsoft account for free](https://support.microsoft.com/help/4026324/microsoft-account-how-to-create).

3. Choose your preferred color theme and other UI settings. Visual Studio [remembers these settings and synchronizes](../ide/synchronized-settings-in-visual-studio.md) 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.
3. Choose your preferred color theme and other UI settings. Visual Studio [remembers these settings and synchronizes](../ide/synchronized-settings-in-visual-studio.md) them across all Visual Studio environments you signed in to. You can change the settings later if you open the **Tools** > **Options** menu in Visual Studio.

You can see that you've successfully signed in, in the upper-right corner of the Visual Studio environment. Unless you sign out, you automatically sign in to Visual Studio whenever you start it, and any changes to synchronized settings are automatically applied.

### Sign in from the IDE

If you choose to not sign in when you first open Visual Studio, you can sign in later from the IDE.

1. Select the **Sign in** icon in the upper-right corner of the Visual Studio environment.

:::image type="content" source="media/vs-2022/signing-in-to-visual-studio/sign-in-icon-ide.png" alt-text="Screenshot of Sign in icon in the Visual Studio IDE.":::

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.
1. On the **Sign in to your account** page, select the **Connected to Windows** account or select **Use another account** to sign in with another account.
1. Follow the prompts to enter the new account credentials.

<a name="benefits"></a>
## Benefits: why sign in?
Expand All @@ -65,7 +76,7 @@ While you don't have to sign in, there are many advantages to doing so.

<a name="add-and-switch"></a>

## Add and switch user accounts to Visual Studio
## Add and switch user accounts in Visual Studio

If you have multiple 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.

Expand Down Expand Up @@ -102,7 +113,7 @@ There are several types of accounts you can add:

1. Go to **File > Account Settings...** and select the **Manage Visual Studio profile** link.
1. In the browser window, select **Edit profile** and change the settings that you want.
1. When you're done, select **Save changes**.
1. When done, select **Save changes**.

::: moniker range="vs-2019"

Expand Down

0 comments on commit 0187546

Please sign in to comment.