Bagikan melalui


Accessibility in Visual Studio for Mac

Important

Visual Studio for Mac was retired on August 31, 2024 in accordance with Microsoft’s Modern Lifecycle Policy. While you can continue to work with Visual Studio for Mac, there are several other options for developers on Mac such as the preview version of the new C# Dev Kit extension for VS Code.

Learn more about support timelines and alternatives.

There are a number of accessibility tools and features built right into macOS to assist you when using Visual Studio for Mac. These features include a high-contrast mode, keyboard navigation, and VoiceOver (the macOS screen reader).

In addition to these, Visual Studio for Mac also has the following features to make it more accessible for people of varying abilities:

  • Editor text enlargement
  • Tool window text enlargement
  • Code editor color theme customization
  • Keyboard shortcut customization
  • Keyboard navigation

In this article, learn how to use macOS accessibility features, and to set accessibility options in the Visual Studio for Mac IDE.

Note

This guide refers to Visual Studio for Mac. For Visual Studio on Windows, see Accessibility features of Visual Studio.

Increase the contrast in macOS

Visual Studio for Mac supports increased contrast in macOS, increasing the contrast of UI elements and making outlines more defined. To enable this:

  1. Open System Preferences.

  2. Go to Accessibility, and select Display.

  3. Select the Increase contrast checkbox.

Resize tool windows and editor content

  1. Choose the tool window or editor window for which you want to resize the content.

  2. Choose View (menu), and then select Zoom In (⌘+) or Zoom Out (⌘-).

Tip

To reset the content to the default size, you can choose View (menu) > Normal Size (⌘0).

Change the content font and size

It's possible to customize the font and size of content in most tool windows in Visual Studio for Mac. Here's how:

  1. Go to Visual Studio (menu) > Preferences... (⌘,).

  2. In Preferences, go to Environment > Fonts.

  3. For either Text Editor, General Tool Window Text, or Output Window Contents, select the font and size button.

  4. Select your desired font, style, and size, and select OK.

Tip

To return to the default font and style for each setting, select Set to Default.

Change the editor syntax highlighting

Some users might find that the default color scheme doesn't meet their contrast or color requirements. Visual Studio for Mac has a number of alternative themes that the user can select, including two high contrast themes.

  1. Go to Visual Studio (menu) > Preferences... (⌘,).

  2. In Preferences, go to Text Editor > Color Theme.

  3. Select your desired theme.

Tip

The theme will update in the editor in real time, so you can preview and select your preferred theme.

For more information, see the following topic: