適用于 Windows 使用者的 Visual Studio for MacVisual Studio for Mac for Windows users

從一個作業系統遷移到另一個作業系統可能會很困難。Migrating from one operating system to another can be daunting. 跨平臺應用程式(從使用者介面到功能表項目的分類)通常會有細微的差異。There are often subtle differences in cross-platform applications, from the user interface to the categorization of menu items. 您將在這裡瞭解 Windows 的 Visual Studio for Mac 和 Visual Studio 之間最常見的差異。Here you'll learn the most common differences between Visual Studio for Mac and Visual Studio for Windows. 您也將瞭解 macOS 和 Windows 之間的幾個不同慣例。You'll also learn a few different conventions between macOS and Windows.

鍵盤快速鍵Keyboard shortcuts

就開發人員而言,許多人都習慣使用鍵盤來進行工作和導覽。As developers, many of you will be accustomed to using the keyboard for your tasks and navigation. 在 Mac 與 Windows 電腦之間,鍵盤上的某些按鍵是共通的。Some keys on the keyboard are common between Macs and Windows PCs. 您可以 forgiven,以為鍵盤動作(例如複製和貼上)使用相同的按鍵組合。You could be forgiven for thinking that keyboard actions such as copy and paste use the same key combinations. 這不一定都是如此。This is not always the case. 幸好,您可以在 Visual Studio for Mac 中變更金鑰系結,以與 Windows 中 Visual Studio 的系結緊密相符。Fortunately, you can change your key bindings in Visual Studio for Mac to closely match those of Visual Studio in Windows.

當您第一次執行 Visual Studio for Mac 時,您會看到鍵盤快速鍵選取範圍視窗:按鍵系結  視窗The first time you run Visual Studio for Mac you'll see the keyboard shortcuts selection window: Key bindings window

如果您稍後想要變更金鑰系結,您可以在 [喜好設定:索引鍵系結喜好設定] 中找到設定 If you want to change the key bindings later, you can find the setting in the preferences: Key bindings preferences

請務必注意,macOS 會使用不同的全系統快捷方式來使用 Windows。It's important to note that macOS uses different system-wide shortcuts to Windows. 變更按鍵系結喜好設定可讓您在 Visual Studio for Mac 中使用熟悉的 Windows 快捷方式。Changing the key binding preferences will allow you to use familiar Windows shortcuts in Visual Studio for Mac. 不過,在 macOS 的其他區域中,您必須熟悉 macOS 快捷方式。However, in other areas of macOS you'll need to be familiar with macOS shortcuts.

MacOS 命令 (⌘) 輔助按鍵通常可以取代 Windows 中的控制項索引鍵。The macOS Command (⌘) modifier key can commonly replace the Control key in Windows. 以下是一些範例,以及其他常用的快速鍵:Here are some examples, and other commonly used shortcuts:

TaskTask Windows 快捷方式Windows Shortcut macOS 快捷方式macOS Shortcut
複製Copy Ctrl + C ⌘ + C
貼上Paste Ctrl + V ⌘ + V
剪下Cut Ctrl + X ⌘ + X
復原Undo Ctrl + Z ⌘ + Z
取消復原Redo Ctrl + Shift + Z ⌘ + Shift + Z
刪除資料指標的右邊Delete right of cursor Delete fn + Backspace
刪除詞彙Delete word Ctrl + Delete fn + ⌥ + Backspace

提示

您可以在 Apple 支援網站上找到 macOS 快捷方式的完整清單。You can find a comprehensive list of macOS shortcuts on the Apple Support website.

MacOS 中的功能表與 Windows 中的功能表的組織方式不同。Menus in macOS are organized differently than menus in Windows. Visual Studio for Mac 不例外。Visual Studio for Mac is no exception. 您可以在這裡找到一些最常見的功能表選項:You can find some of the most common menu options here:

TaskTask Visual Studio (Windows)Visual Studio (Windows) Visual Studio for MacVisual Studio for Mac
喜好設定 (選項) Preferences (Options) 工具 > 選項 .。。Tools > Options... Visual Studio > 喜好設定 .。。Visual Studio > Preferences...
延伸模組Extensions 擴充功能 > 管理延伸模組Extensions > Manage Extensions Visual Studio > 延伸模組 .。。Visual Studio > Extensions...
版面配置Layouts 視窗 > 套用視窗配置 > [選取版面配置]Window > Apply Window Layout > [Select layout] View > 版面配置 > [選取版面配置]View > Layout > [Select layout]
更新Updates 協助 > 檢查更新Help > Check for Updates Visual Studio > 檢查更新 .。。Visual Studio > Check for Updates...
NuGet 套件管理員NuGet Package Manager > NuGet 封裝管理員 > 管理 NuGet 套件或解決方案的工具 .。。Tools > NuGet Package Manager > Manage NuGet Packages or Solution... Project > 管理 NuGet 套件 .。。Project > Manage NuGet Packages...
尋找工具Find tools 編輯 > 尋找和取代 > [選取工具]Edit > Find and Replace > [Select tool] 搜尋 > [選取工具]Search > [Select tool]
Visual Studio 概觀About Visual Studio > Microsoft Visual Studio 的相關資訊Help > About Microsoft Visual Studio 有關 Visual Studio 的 Visual Studio >Visual Studio > About Visual Studio

注意

您可以在IDE 導覽中找到 Visual Studio for Mac 中最常見功能的總覽You can find an overview of most common features in Visual Studio for Mac in the IDE Tour