所有工具
免費

一份可搜尋、可列印的 Visual Studio Code 參考——用於編輯、導覽、多游標、搜尋和終端機的鍵盤快速鍵。免費。

Command palette & general

9
Cmd/Ctrl + Shift + P
Command palette (run any command)
Cmd/Ctrl + P
Quick open a file by name
Cmd/Ctrl + Shift + N
New editor window
Cmd/Ctrl + ,
Open settings
Cmd/Ctrl + K Cmd/Ctrl + S
Open keyboard shortcuts
Cmd/Ctrl + S
Save file
Cmd/Ctrl + Shift + S
Save as
Cmd/Ctrl + W
Close editor
Cmd/Ctrl + Shift + T
Reopen the last closed editor

Editing

11
Cmd/Ctrl + X
Cut line (no selection)
Cmd/Ctrl + C
Copy line (no selection)
Alt + ↑ / ↓ (Opt on Mac)
Move line up / down
Shift + Alt + ↑ / ↓
Copy line up / down
Cmd/Ctrl + Shift + K
Delete line
Cmd/Ctrl + Enter
Insert line below
Cmd/Ctrl + Shift + Enter
Insert line above
Cmd/Ctrl + /
Toggle line comment
Shift + Alt + A
Toggle block comment
Cmd/Ctrl + ] / [
Indent / outdent line
Cmd/Ctrl + Shift + \
Jump to matching bracket

Multi-cursor & selection

9
Cmd/Ctrl + D
Select next match of the selection
Cmd/Ctrl + Shift + L
Select all matches at once
Cmd + Opt + ↑ / ↓ (Mac)
Add cursor above / below
Ctrl + Alt + ↑ / ↓ (Win)
Add cursor above / below
Alt + Click (Opt on Mac)
Add a cursor at the click
Cmd/Ctrl + U
Undo the last cursor operation
Cmd/Ctrl + L
Select the current line
Cmd/Ctrl + Shift + →/←
Expand selection by word
Shift + Alt + I
Cursor at end of each selected line

Navigation

9
Cmd/Ctrl + G
Go to line number
Cmd/Ctrl + Shift + O
Go to symbol in file
Cmd/Ctrl + T
Go to symbol in workspace
F12 / Cmd/Ctrl + Click
Go to definition
Alt + F12
Peek definition
Cmd/Ctrl + - / Ctrl + -
Go back to previous location
Cmd/Ctrl + Shift + \
Navigate matching bracket
Cmd/Ctrl + 1 / 2 / 3
Focus editor group 1 / 2 / 3
Ctrl + Tab
Cycle through open editors

Search & replace

9
Cmd/Ctrl + F
Find in file
Cmd/Ctrl + H (Alt+Cmd+F on Mac)
Replace in file
Cmd/Ctrl + Shift + F
Find across files
Cmd/Ctrl + Shift + H
Replace across files
Enter / Shift + Enter
Next / previous match
Alt + Enter
Select all find matches
.* toggle
Enable regular-expression search
Aa toggle
Toggle case-sensitive search
Cmd/Ctrl + Shift + J
Toggle search details / filters

Refactor & code actions

9
F2
Rename symbol
Cmd/Ctrl + .
Quick fix / code actions
Cmd/Ctrl + Shift + R
Refactor menu
Shift + Alt + F
Format document
Cmd/Ctrl + K Cmd/Ctrl + F
Format selection
Cmd/Ctrl + Space
Trigger suggestions / IntelliSense
Cmd/Ctrl + Shift + Space
Trigger parameter hints
Cmd/Ctrl + K Cmd/Ctrl + I
Show hover info
Shift + F12
Find all references

Integrated terminal

8
Ctrl + ` (backtick)
Toggle the terminal panel
Cmd/Ctrl + Shift + `
Create a new terminal
Cmd/Ctrl + \ (in terminal)
Split the terminal
Cmd/Ctrl + Shift + 5
Split the active terminal
Alt + Cmd + ←/→ (Mac)
Focus previous / next terminal
Cmd/Ctrl + C
Copy selection (else interrupt)
Cmd/Ctrl + K (focused)
Clear the terminal
kill icon / trash
Kill the active terminal

Display & layout

10
Cmd/Ctrl + B
Toggle the side bar
Cmd/Ctrl + J
Toggle the bottom panel
Cmd/Ctrl + Shift + E
Show the Explorer
Cmd/Ctrl + Shift + G
Show Source Control
Cmd/Ctrl + Shift + X
Show Extensions
Cmd/Ctrl + Shift + D
Show Run & Debug
Cmd/Ctrl + K Z
Zen mode (distraction free)
Cmd/Ctrl + = / -
Zoom editor in / out
Cmd/Ctrl + \
Split the editor
Ctrl + Cmd + F (Mac) / F11
Toggle full screen

沒有條目符合「:q」。


關於 VS Code 速查表

這份 VS Code 小抄是以鍵盤操作為主的 Visual Studio Code 參考資料:命令選擇區與一般快速鍵、編輯、多游標與選取、導覽、搜尋與取代、重構與程式碼動作、整合式終端機,以及顯示與版面配置控制。

大多數列會同時列出 Windows/Linux 與 macOS 的按鍵,對應移動整行、新增游標、跳到符號、切換終端機等單一動作——因為一旦這些快速鍵成為手指的直覺反應而非選單選項,編輯器的速度就會大幅提升。

此小抄免費且在用戶端運作。用搜尋框即時篩選快速鍵,透過固定式目錄在各章節間跳轉,一鍵複製任何按鍵組合並列印本頁——一份列印出來的快速鍵表,是戒掉滑鼠依賴最快的方式。

如何使用 VS Code 速查表

  1. 打開小抄,瀏覽各章節,從命令選擇區與一般設定,到顯示與版面配置。
  2. 搜尋 multi-cursor、terminal 或 rename 等動作,即可即時篩選快速鍵。
  3. 透過固定式側邊欄跳到導覽或重構與程式碼動作等章節。
  4. 若想貼到筆記或文件中,可點擊快速鍵或其複製圖示。
  5. 列印小抄並保持可見,直到這些快速鍵成為自然反應為止。

常見問題

有的。兩種鍵盤慣例的按鍵組合都有列出,因此不論你使用 Windows、Linux 還是 macOS,這份小抄都適用。

共八個章節:命令選擇區與一般設定、編輯、多游標與選取、導覽、搜尋與取代、重構與程式碼動作、整合式終端機,以及顯示與版面配置。

先從命令選擇區開始——它能用名稱呼叫其他所有指令——接著學習導覽與多游標章節,這兩者能帶來最大的日常效率提升。

兩者都可以。搜尋框能即時篩選每一列並顯示符合筆數,列印按鈕則能輸出一份沒有多餘介面元素的乾淨表格。

是的,完全免費——不需帳號的用戶端參考資料。


熱門搜尋
vs code cheat sheet vs code keyboard shortcuts vscode shortcuts list vs code multi cursor shortcuts vs code command palette vscode search and replace shortcuts vs code terminal shortcuts vs code navigation shortcuts
需要協助?
使用此工具時遇到問題?請告訴我們的團隊。
回報問題

將此免費工具新增到你自己的網站 — 複製並貼上下面的程式碼。