協助工具選項Accessibility

除了 macOS 中的功能和公用程式之外,Visual Studio for Mac 具有下列功能,可讓身心障礙人士更方便存取:In addition to features and utilities in macOS, Visual Studio for Mac has the following features, making it more accessible for people with disabilities:

  • Solution Pad 與 Editor Pad 中的文字放大Text Enlargement in the Solution and Editor Pads
  • 編輯器中的文字大小選項Text size options in the editors
  • 編輯器中的色彩自訂Color customization in the editors
  • 鍵盤快速鍵自訂Keyboard shortcut customization
  • 方法和參數的程式碼完成Code-completion for methods and parameters

如需 macOS 中協助工具功能的詳細資訊,請參閱 Apple 的網站For more information on accessibility features in macOS, see Apple's website.

在 Visual Studio for Mac 中使用協助工具功能Using Accessibility features in Visual Studio for Mac

Visual Studio for Mac 中的協助工具功能預設為關閉。The Accessibility features in Visual Studio for Mac are turned off by default. 若要啟用,請遵循下列步驟:To enable them, do the following steps:

  1. 移至 [Visual Studio] > [偏好設定] > [其他] > [協助工具]。Go to Visual Studio > Preferences > Other > Accessibility.

  2. 如下圖所示,選取 [啟用協助工具] 核取方塊:Select the Enable Accessibility checkbox, as illustrated in the following diagram:

    啟用協助工具核取方塊

  3. 按 [重新啟動 Visual Studio] 按鈕,讓協助工具功能生效。Press the Restart Visual Studio button to allow the accessibility features to take effect.

或者,您可以使用命令列來啟用協助工具功能。Alternatively, you can use the command line to enable accessibility features. 做法是在終端機中輸入下列命令:To do this, enter the following command in terminal:

defaults write com.microsoft.visual-studio com.monodevelop.AccessibilityEnabled 1 

開啟協助工具功能之後,需要重新啟動 Visual Studio。After turning on accessibility, you need to restart Visual Studio.

如何:使用鍵盤巡覽How to: Use Keyboard Navigation

若要啟用鍵盤巡覽,請將 [系統偏好設定] > [鍵盤] > [快速鍵] 中的 [完整鍵盤存取] 選項設定為 [所有控制項]:Keyboard navigation can be enabled by setting the Full Keyboard Access option in System Preferences > Keyboard > Shortcuts to All Controls:

macos 中的系統偏好設定面板

設定完整鍵盤存取可開啟焦點矩形。Setting full keyboard access turns on the focus rectangle. 您接著可以使用下列方式來選取控制項:You can then select controls using:

  • 按 Tab 鍵以向前瀏覽控制項Tab to go forward through controls
  • 按 Shift-Tab 鍵以向後瀏覽控制項Shift-Tab to go backwards through controls
  • 按方向鍵可依箭頭方向在控制項之間移動。Arrow keys to move between controls in the direction of the arrows.

按空格鍵可啟動焦點所在的控制項。Pressing the Space bar activates the focused control.

如何:啟用及使用 VoiceOverHow to: Enable and use Voice Over

Cmd + F5 可開啟或關閉 VoiceOverTurn VoiceOver on or off press Cmd + F5

若要在 UI VoiceOver 命令之間巡覽,請使用下列命令:To navigate through the UI VoiceOver commands, use the following commands:

  • 在控制項之間移動 VoiceOver 游標:Ctrl + Alt + 向左鍵 / 向右鍵Move VoiceOver cursor between Controls: Ctrl + Alt + Left arrow key / Right arrow key

VoiceOver 會唸出控制項的名稱、相關的詳細資訊,以及可達成的功能。VoiceOver reads out the name of the controls, some details about it, and what you can do with it.

  • 輸入群組和控制項 (像是 Solution Pad、工具箱和其他 Pad):Ctrl + Alt + Shift + 向下鍵Enter Groups and controls (such as the Solution Pad, Toolbox, and other Pads): Ctrl + Alt + Shift + Down Arrow

移至控制項內部之後,可以使用 Ctrl + Alt + 方向鍵 在控制項內部中移動。Once inside a control, you can use Ctrl + Alt + Arrows to move around inside it.

如需在 macOS 中使用 VoiceOver 的一般資訊,請參閱下列指南:For general information on using VoiceOver in macOS, refer to the following guides: