AI Engineering Tools

程式設計

Windows 與 macOS 常用鍵盤快速鍵

比較編輯、系統操作、螢幕擷取、瀏覽器、VS Code 與終端機常用快速鍵。

48 個快速鍵

常見的編輯

複製

適用範圍大部分應用程式

Windows

Ctrl + C

macOS

Command + C

功能

將選取的文字、檔案或項目複製到剪貼簿。

常見的編輯

粘貼

適用範圍大部分應用程式

Windows

Ctrl + V

macOS

Command + V

功能

將目前剪貼簿內容粘貼到光標或選取位置。

常見的編輯

剪輯

適用範圍大部分應用程式

Windows

Ctrl + X

macOS

Command + X

功能

移除選取項目,並將其放置在剪貼板中,當應用程式支援剪切時。

常見的編輯

撤銷

適用範圍大部分應用程式

Windows

Ctrl + Z

macOS

Command + Z

功能

反轉最近一次支援的動作。

常見的編輯

重做

適用範圍大部分編輯應用程式

Windows

Ctrl + YCtrl + Shift + Z

macOS

Shift + Command + Z

功能

恢復已撤消的動作。

注意

應用程式可以覆寫或自訂此快捷鍵。當其行為不同時,請檢查應用程式選單。

常見的編輯

選擇全部

適用範圍大部分應用程式

Windows

Ctrl + A

macOS

Command + A

功能

選擇目前視圖或欄位中的所有相關內容。

常見的編輯

查找

適用範圍文档、编辑器和浏览器

Windows

Ctrl + F

macOS

Command + F

功能

開啟當前應用程式的搜尋欄位,用於輸入文字或項目。

常見的編輯

儲存

適用範圍文檔和編輯應用程式

Windows

Ctrl + S

macOS

Command + S

功能

將變更儲存到當前文件或檔案。

文本和程式碼導航

每次移動一個單字

適用範圍文本欄位和程式碼編輯器

Windows

Ctrl + Left/Right Arrow

macOS

Option + Left/Right Arrow

功能

每次移動一個單字,而不是一個字元。

文本和程式碼導航

移動到行開頭或結尾

適用範圍文本欄位和程式碼編輯器

Windows

HomeEnd

macOS

Command + Left ArrowCommand + Right Arrow

功能

將游標直接移動到當前行的開頭或結尾。

文本和程式碼導航

移動到文件開頭或結尾

適用範圍文档和代码编辑器

Windows

Ctrl + HomeCtrl + End

macOS

Command + Up ArrowCommand + Down Arrow

功能

直接移動到文件開頭或結尾。

文本和程式碼導航

擴展選取範圍,以單詞為單位。

適用範圍文本欄位和程式碼編輯器

Windows

Ctrl + Shift + Left/Right Arrow

macOS

Option + Shift + Left/Right Arrow

功能

每次擴展或縮小一個單詞的選擇範圍。

文本和程式碼導航

刪除上一個單字

適用範圍文本欄位和程式碼編輯器

Windows

Ctrl + Backspace

macOS

Option + Delete

功能

刪除光標前一個單字。

應用程式和系統

切换应用程序

適用範圍作業系統

Windows

Alt + Tab

macOS

Command + Tab

功能

顯示正在運行的應用程式或視窗,並將焦點移動到另一個視窗。

應用程式和系統

開啟系統搜尋

適用範圍Windows 搜尋或焦點

Windows

Windows + S

macOS

Command + Space

功能

開啟系統搜尋介面,用於搜尋應用程式、文件、設定和其他結果。

應用程式和系統

鎖定螢幕

適用範圍作業系統

Windows

Windows + L

macOS

Control + Command + Q

功能

鎖定目前的會話,但不關閉已開啟的工作。

應用程式和系統

顯示桌面。

適用範圍作業系統

Windows

Windows + D

macOS

Fn + F11

功能

暫時移動或隱藏視窗,以便顯示桌面。

注意

在 macOS 上,功能鍵的設定可能需要使用 Fn 鍵或 Globe 鍵,並且可以自訂快捷鍵。

應用程式和系統

開啟任務或視窗概覽

適用範圍任務檢視或任務控制中心

Windows

Windows + Tab

macOS

Control + Up Arrow

功能

顯示打開的視窗和桌面工作區,以便進行視覺導航。

應用程式和系統

切换虚拟桌面

適用範圍虛擬桌面或工作區

Windows

Windows + Ctrl + Left/Right Arrow

macOS

Control + Left/Right Arrow

功能

移至緊鄰左側或右側的工作區。

應用程式和系統

切换输入语言

適用範圍作業系統輸入來源

Windows

Windows + Space

macOS

Control + Space

功能

循環瀏覽已安裝的鍵盤語言或輸入來源。

注意

鍵盤佈局、輸入源設定和自定義快捷鍵可以更改此鍵組合。

螢幕截圖

捕獲整個螢幕

適用範圍作業系統

Windows

Windows + PrtScn

macOS

Shift + Command + 3

功能

捕獲整個螢幕並使用系統螢幕截圖工作流程保存圖像。

螢幕截圖

捕獲選定區域

適用範圍截圖工具或 macOS 截圖

Windows

Windows + Shift + S

macOS

Shift + Command + 4

功能

允許您拖動屏幕的特定部分以進行截圖。

螢幕截圖

開啟或開始螢幕錄影

適用範圍遊戲欄或 macOS 截圖工具欄

Windows

Windows + Alt + R

macOS

Shift + Command + 5

功能

啟動受支持的 Windows 應用程式錄製,或打開 macOS 螢幕截圖和錄製控制。

注意

Windows 遊戲欄的錄製可用性和捕獲範圍取決於當前應用程式和系統設定。

瀏覽器

開啟一個新的分頁

適用範圍Chrome 和大多數瀏覽器

Windows

Ctrl + T

macOS

Command + T

功能

開啟一個新的瀏覽器分頁,並將焦點移到該分頁。

瀏覽器

關閉目前的標籤

適用範圍Chrome 和大多數瀏覽器

Windows

Ctrl + W

macOS

Command + W

功能

關閉活動的瀏覽器標籤。

瀏覽器

重新開啟關閉的標籤

適用範圍Chrome 和大多數瀏覽器

Windows

Ctrl + Shift + T

macOS

Command + Shift + T

功能

恢復最近關閉的標籤,並按照關閉的順序反向排列。

瀏覽器

聚焦地址欄

適用範圍Chrome 和大多數瀏覽器

Windows

Ctrl + L

macOS

Command + L

功能

選擇目前地址,以便您可以立即輸入 URL 或進行搜尋。

瀏覽器

重新載入頁面

適用範圍Chrome 和大多數瀏覽器

Windows

Ctrl + R

macOS

Command + R

功能

使用瀏覽器的正常快取行為重新載入當前頁面。

瀏覽器

重新載入而不使用正常快取

適用範圍Chrome

Windows

Ctrl + Shift + R

macOS

Command + Shift + R

功能

請求重新載入頁面,同時繞過正常的快取副本。

注意

應用程式可以覆寫或自訂此快捷鍵。當其行為不同時,請檢查應用程式選單。

瀏覽器

開啟開發者工具

適用範圍Chrome 和 Chromium 基礎的瀏覽器

Windows

Ctrl + Shift + IF12

macOS

Command + Option + I

功能

開啟瀏覽器工具,用於檢查 HTML、CSS、控制台輸出、網路請求和儲存。

瀏覽器

在標籤之間切換

適用範圍Chrome

Windows

Ctrl + TabCtrl + Shift + Tab

macOS

Command + Option + Right ArrowCommand + Option + Left Arrow

功能

移至下一個或上一個已開啟的瀏覽器分頁。

注意

應用程式可以覆寫或自訂此快捷鍵。當其行為不同時,請檢查應用程式選單。

VS Code

快速打開。

適用範圍Visual Studio Code

Windows

Ctrl + P

macOS

Command + P

功能

依名稱搜尋工作區檔案,並開啟所選檔案。

VS Code

開啟命令面板

適用範圍Visual Studio Code

Windows

Ctrl + Shift + PF1

macOS

Command + Shift + PF1

功能

搜尋並執行 VS Code 命令,無需瀏覽菜單。

VS Code

在所有檔案中搜尋

適用範圍Visual Studio Code

Windows

Ctrl + Shift + F

macOS

Command + Shift + F

功能

搜尋目前工作區中的所有檔案中的文字。

VS Code

切換整合終端機

適用範圍Visual Studio Code

Windows

Ctrl + `

macOS

Control + `

功能

顯示或隱藏整合的終端面板。

注意

鍵盤佈局、輸入源設定和自定義快捷鍵可以更改此鍵組合。

VS Code

切換行註解

適用範圍Visual Studio Code

Windows

Ctrl + /

macOS

Command + /

功能

添加或刪除語言的單行註釋符,用於當前行或選擇。

注意

鍵盤佈局、輸入源設定和自定義快捷鍵可以更改此鍵組合。

VS Code

格式化文件

適用範圍Visual Studio Code

Windows

Shift + Alt + F

macOS

Shift + Option + F

功能

對於當前文件,執行配置的格式化工具。

注意

必須提供格式化器,並且必須為當前語言選擇格式化器。

VS Code

轉到定義

適用範圍Visual Studio Code

Windows

F12

macOS

F12Fn + F12

功能

從符號引用移動到其檢測到的定義。

注意

在 Mac 鍵盤上,功能鍵設置可能需要使用 Fn 或 Globe 鍵與 F12 鍵。

VS Code

重新命名符號

適用範圍Visual Studio Code

Windows

F2

macOS

F2Fn + F2

功能

將已識別的符號重新命名為支援的參考資料。

注意

語言支持決定是否可以安全地找到和重命名所有引用。

VS Code

分割編輯器

適用範圍Visual Studio Code

Windows

Ctrl + \

macOS

Command + \

功能

開啟另一個編輯器群組,以便可以並排查看文件。

注意

鍵盤佈局、輸入源設定和自定義快捷鍵可以更改此鍵組合。

VS Code

開啟鍵盤快捷鍵

適用範圍Visual Studio Code

Windows

Ctrl + K, Ctrl + S

macOS

Command + K, Command + S

功能

開啟可搜尋的編輯器,用於查看、更改和排除鍵綁定的問題。

終端機和 Shell

中斷正在執行的命令

適用範圍PowerShell, Bash, zsh, and many shells

Windows

Ctrl + C

macOS

Control + C

功能

向正在執行的終端進程發送中斷信號或取消請求。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

清除終端機螢幕

適用範圍PowerShell, Bash, zsh, and many shells

Windows

Ctrl + L

macOS

Control + L

功能

通常會保留命令歷史記錄,同時清除可見的終端區域。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

完整命令或路徑

適用範圍PowerShell, Bash, zsh, and many shells

Windows

Tab

macOS

Tab

功能

完整或循環瀏覽匹配的命令、路徑和引數。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

瀏覽命令歷史記錄

適用範圍PowerShell, Bash, zsh, and many shells

Windows

Up/Down Arrow

macOS

Up/Down Arrow

功能

在先前輸入的命令之間前進或後退。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

搜尋命令歷史記錄

適用範圍PSReadLine、Bash、zsh 和相容的 shell

Windows

Ctrl + R

macOS

Control + R

功能

開始反向搜索之前輸入的命令。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

移動到命令列開頭

適用範圍Shell 行編輯器

Windows

HomeCtrl + A

macOS

Control + A

功能

將游標移動到當前命令行的開頭。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。

終端機和 Shell

移動到命令列結尾

適用範圍Shell 行編輯器

Windows

EndCtrl + E

macOS

Control + E

功能

將游標移動到當前命令行的結尾。

注意

終端機快捷鍵取決於 Shell、行編輯器、終端機應用程式以及鍵盤配置。