登录 Visual Studio for MacSign in to Visual Studio for Mac

登录到 Visual Studio for Mac 是激活订阅的过程。Signing in to Visual Studio for Mac is how you activate your subscription. 下载 Visual Studio for Mac 时,默认情况下,将始终获取社区版。When you download Visual Studio for Mac, you'll always get the Community edition by default. 如果有 Professional 或 Enterprise 许可证,则应在首次运行时登录来解锁任何其他功能。If you have a Professional or Enterprise license, you should sign-in on first run to unlock any additional features. 此外,还可以获得以下功能:In addition you'll also get the following:

  • 访问 Visual Studio Dev Essentials 程序的权限 - 此程序包括免费软件产品/服务、培训、支持等。Access to the Visual Studio Dev Essentials program – This program includes free software offerings, training, support, and more. 请参阅 Visual Studio Dev Essential 了解详细信息。See Visual Studio Dev Essentials for more information.

  • 在 IDE 中自动连接到 Azure,而不会再次提示对同一帐户输入凭据****。Automatically connect to Azure in the IDE without prompting again for credentials for the same account.

首次启动 Visual Studio for Mac 时,系统会提示使用 Microsoft 帐户登录。When you launch Visual Studio for Mac for the first time, you're prompted to log in using a Microsoft account. 使用已连接到要使用的许可证的 Microsoft 帐户。Use a Microsoft account that is connected to the license that you wish to use. 如果没有 Microsoft 帐户,请参阅如何注册帐户If you do not have a Microsoft account, see How do I sign up for an account.

如果不立即登录,可使用评估副本 30 天。If you do decide not to log in straight away, you'll be able to use an evaluation copy for 30 days. 30 天后,必须登录才能继续使用 Visual Studio for Mac 副本。After 30 days you must log in to continue using your copy of Visual Studio for Mac.

如何登录 Visual Studio for MacHow to sign in to Visual Studio for Mac

提示

登录到 Visual Studio for Mac 之前,请确保已连接到 Internet。Make sure that you're connected to the internet before signing in to Visual Studio for Mac. > 订阅只能联机激活。> Subscriptions can only be activated online. 如果未连接,请选择“稍后再执行此操作”,并在连接后通过菜单登录。If you're not connected, choose "I'll do this later" and log in through the menu when you get connected.

要在第一次启动时登录 Visual Studio for Mac,请执行以下步骤:To sign in to Visual Studio for Mac on first launch, do the following steps:

  1. 单击登录窗口中的“使用 Microsoft 登录”按钮****:Click the Sign in with Microsoft button on the sign-in window:

    Visual Studio for Mac 中的“帐户”对话框

  2. 输入 Microsoft 凭据:Enter your Microsoft Credentials:

    “Microsoft 凭据”对话框

  3. 登录后,你将看到一个选择键盘快捷方式的选项。After you've logged in, you'll see an option to select keyboard shortcuts. 选择要使用的选项,然后继续操作****。Pick the option you wish to use and Continue. Visual Studio 2019 for Mac“启动”窗口将提醒你。You'll then be prompted with the Visual Studio 2019 for Mac start window. 可在此处打开或创建新项目:From here, you can open or create a new project:

    登录成功

或者,可以使用“Visual Studio”>“登录...”****Alternatively, you can use the Visual Studio > Sign in… 菜单项随时登录和注销。menu item to sign in and out at any time.

添加多个用户帐户Adding multiple user accounts

Visual Studio for Mac 支持向个性化帐户添加多个帐户。Visual Studio for Mac supports adding multiple accounts to your personalization account. 可从任何添加的帐户访问 Azure 等资源。These additional accounts will allow you to access resources, such as Azure, from any added account.

要添加其他用户帐户,请在 Visual Studio for Mac 中选择“Visual Studio”>“帐户...”菜单****。To add additional user accounts, choose the Visual Studio > Account... menu from Visual Studio for Mac. 单击“添加...”按钮,输入其他帐户凭据****。Click the Add... button to enter additional account credentials.

管理帐户

查看或更改个人资料信息View or change your profile information

  1. 转到 Visual Studio >“帐户...”****,Go to Visual Studio > Account… 然后选择“个人资料”**** 按钮。and select the My profile button.

  2. 在浏览器窗口,选择“编辑配置文件”并更改所需的设置。In the browser window, choose Edit profile and change the settings that you want.

  3. 完成后,选择“保存更改”。When you're done, choose Save changes.

请参阅See also