掌握 VS Code、Chrome DevTools、終端機、Figma、Vim、Excel 和 IntelliJ 的鍵盤快速鍵。支援按應用程式篩選和快速鍵搜尋。
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Command Palette | ⌘+Shift+P | Ctrl+Shift+P | |
| Quick Open file | ⌘+P | Ctrl+P | |
| New file | ⌘+N | Ctrl+N | |
| Save | ⌘+S | Ctrl+S | |
| Save All | ⌘+K S | Ctrl+K S | |
| Close editor | ⌘+W | Ctrl+W | |
| Reopen closed editor | ⌘+Shift+T | Ctrl+Shift+T | |
| Split editor | ⌘+\ | Ctrl+\ | |
| Toggle terminal | ⌘+` | Ctrl+` | |
| Toggle sidebar | ⌘+B | Ctrl+B | |
| Format document | ⌘+Shift+I | Ctrl+Shift+I | |
| Format selection | ⌘+K ⌘+F | Ctrl+K Ctrl+F | |
| Go to definition | F12 | F12 | |
| Peek definition | ⌥+F12 | Alt+F12 | |
| Find references | ⌥+Shift+F12 | Alt+Shift+F12 | |
| Rename symbol | F2 | F2 | |
| Find in file | ⌘+F | Ctrl+F | |
| Find in all files | ⌘+Shift+F | Ctrl+Shift+F | |
| Replace in file | ⌘+H | Ctrl+H | |
| Multi-cursor (click) | ⌥+Click | Alt+Click | |
| Multi-cursor add below | ⌘+⌥+↓ | Ctrl+Alt+↓ | |
| Select all occurrences | ⌘+Shift+L | Ctrl+Shift+L | |
| Move line up/down | ⌥+↑/↓ | Alt+↑/↓ | |
| Copy line up/down | ⌥+Shift+↑/↓ | Alt+Shift+↑/↓ | |
| Delete line | ⌘+Shift+K | Ctrl+Shift+K | |
| Comment line | ⌘+/ | Ctrl+/ | |
| Block comment | ⌥+Shift+A | Alt+Shift+A | |
| Fold region | ⌘+K ⌘+[ | Ctrl+K Ctrl+[ | |
| Unfold region | ⌘+K ⌘+] | Ctrl+K Ctrl+] | |
| Keyboard shortcuts | ⌘+K ⌘+S | Ctrl+K Ctrl+S |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Open DevTools | ⌘+⌥+I | F12 / Ctrl+Shift+I | |
| Open Console | ⌘+⌥+J | Ctrl+Shift+J | |
| Command Menu | ⌘+Shift+P | Ctrl+Shift+P | |
| Inspect element | ⌘+Shift+C | Ctrl+Shift+C | |
| Toggle device mode | ⌘+Shift+M | Ctrl+Shift+M | |
| Hard reload (clear cache) | ⌘+Shift+R | Ctrl+Shift+R | |
| Next panel | ⌘+] | Ctrl+] | |
| Focus search/console | ⌃+` | Ctrl+` | |
| Clear console | ⌘+K | Ctrl+L | |
| Go to Settings | F1 | F1 | |
| Pause/Resume script | F8 | F8 | |
| Step into | F11 | F11 | |
| Step over | F10 | F10 | |
| Step out | Shift+F11 | Shift+F11 | |
| Toggle breakpoint | F9 | F9 |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| New tab | ⌘+T | Ctrl+Shift+T (Windows Terminal) | |
| Move to start of line | Ctrl+A | Ctrl+A | |
| Move to end of line | Ctrl+E | Ctrl+E | |
| Delete word backwards | Ctrl+W | Ctrl+W | |
| Delete to start | Ctrl+U | Ctrl+U | |
| Delete to end | Ctrl+K | Ctrl+K | |
| Reverse search history | Ctrl+R | Ctrl+R | |
| Cancel command | Ctrl+C | Ctrl+C | |
| Suspend process | Ctrl+Z | Ctrl+Z | |
| Clear screen | Ctrl+L | Ctrl+L | |
| Exit / EOF | Ctrl+D | Ctrl+D | |
| Transpose chars | Ctrl+T | Ctrl+T | |
| Previous word | ⌥+B | Alt+B | |
| Next word | ⌥+F | Alt+F | |
| Previous command | ↑ / Ctrl+P | ↑ / Ctrl+P | |
| Next command | ↓ / Ctrl+N | ↓ / Ctrl+N |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Select tool | V | V | |
| Frame (artboard) tool | F | F | |
| Rectangle tool | R | R | |
| Text tool | T | T | |
| Pen tool | P | P | |
| Zoom to fit | ⌘+Shift+H | Ctrl+Shift+H | |
| Zoom in/out | + / - | + / - | |
| Zoom 100% | ⌘+0 | Ctrl+0 | |
| Group selection | ⌘+G | Ctrl+G | |
| Ungroup | ⌘+Shift+G | Ctrl+Shift+G | |
| Component create | ⌘+⌥+K | Ctrl+Alt+K | |
| Copy as CSS | ⌘+⌥+C | Ctrl+Alt+C | |
| Show constraints | ⌥+A | Alt+A | |
| Flip horizontal | ⌘+Shift+H (transform) | Ctrl+Shift+H | |
| Fill picker | ⌥+G | Alt+G |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Normal mode | Esc / Ctrl+[ | Esc / Ctrl+[ | |
| Insert before cursor | i | i | |
| Insert at line start | I | I | |
| Append after cursor | a | a | |
| Append at line end | A | A | |
| New line below | o | o | |
| New line above | O | O | |
| Delete line | dd | dd | |
| Yank (copy) line | yy | yy | |
| Paste below | p | p | |
| Undo | u | u | |
| Redo | Ctrl+R | Ctrl+R | |
| Search forward | /pattern | /pattern | |
| Search backward | ?pattern | ?pattern | |
| Next result | n | n | |
| Previous result | N | N | |
| Delete word | dw | dw | |
| Change inside quotes | ci" | ci" | |
| Select word | viw | viw | |
| Go to line 50 | :50 / 50G | :50 / 50G | |
| Save | :w | :w | |
| Quit | :q | :q | |
| Save and quit | :wq / ZZ | :wq / ZZ | |
| Force quit (no save) | :q! | :q! |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Select all | ⌘+A | Ctrl+A | |
| Bold | ⌘+B | Ctrl+B | |
| Find & Replace | ⌘+H | Ctrl+H | |
| Insert row/column | ⌘+Shift+(+) | Ctrl+Shift+(+) | |
| Delete row/column | ⌘+Shift+(-) | Ctrl+Shift+(-) | |
| Fill down | ⌘+D | Ctrl+D | |
| Fill right | ⌘+R | Ctrl+R | |
| Auto-sum (SUM formula) | ⌘+Shift+T | Alt+= | |
| Toggle absolute reference ($) | ⌘+T | F4 | |
| Enter in cell (no navigation) | Ctrl+Enter | Ctrl+Enter | |
| Format cells dialog | ⌘+1 | Ctrl+1 | |
| Hide row | ⌘+9 | Ctrl+9 | |
| Hide column | ⌘+0 | Ctrl+0 | |
| Go to cell A1 | ⌘+Home | Ctrl+Home | |
| New sheet | ⌘+Shift+N (Sheets) | Shift+F11 |
| 動作 | Mac | Windows / Linux | |
|---|---|---|---|
| Search everywhere | Double Shift | Double Shift | |
| Find action | ⌘+Shift+A | Ctrl+Shift+A | |
| Go to class | ⌘+O | Ctrl+N | |
| Go to file | ⌘+Shift+O | Ctrl+Shift+N | |
| Go to symbol | ⌘+⌥+O | Ctrl+Alt+Shift+N | |
| Complete statement | ⌘+Shift+Enter | Ctrl+Shift+Enter | |
| Quick fix / intention | ⌥+Enter | Alt+Enter | |
| Refactor (This) | ⌃+T | Ctrl+Alt+Shift+T | |
| Run | ⌃+R | Shift+F10 | |
| Debug | ⌃+D | Shift+F9 | |
| Step over (debug) | F8 | F8 | |
| Step into (debug) | F7 | F7 | |
| Resume program | ⌘+⌥+R | F9 | |
| Recent files | ⌘+E | Ctrl+E | |
| Recent locations | ⌘+Shift+E | Ctrl+Shift+E |
Don't try to memorize all shortcuts at once. Pick 3 new shortcuts each day and use them consistently until they become muscle memory.
Print a condensed cheat sheet and post it near your monitor. Seeing it regularly reinforces memory even when you're not actively practicing.
Temporarily force yourself to avoid the mouse for common tasks. This creates productive frustration that rapidly builds shortcut recall.
指令選擇區讓您無需記住特定快速鍵即可存取 VS Code 的所有功能。輸入「format」可格式化程式碼,輸入「git」可進行版本控制,輸入「settings」可開啟偏好設定。它也是發現快速鍵的好方法 — 選擇區會在每個指令旁顯示對應的鍵盤快速鍵。
使用 Ctrl+K Ctrl+S(Windows/Linux)或 Cmd+K Cmd+S(Mac)開啟鍵盤快速鍵編輯器。搜尋任意指令,點擊鉛筆圖示進行編輯,然後按下您偏好的按鍵組合。快速鍵儲存在使用者設定資料夾的 keybindings.json 中。
可以 — 從擴充功能市集安裝 VSCodeVim 擴充功能。它可模擬大多數 Vim 動作、指令和模式(一般、插入、視覺)。您可以在 settings.json 中設定其行為並新增 Vim leader 鍵對應。
Ctrl+Shift+P(Mac 為 Cmd+Shift+P)可開啟指令選單 — 類似於 VS Code 的指令選擇區。無需使用滑鼠即可執行任何 DevTools 指令、切換功能或切換面板。這是 DevTools 中最強大的單一快速鍵。
在終端機執行 vimtutor,進行 30 分鐘的互動式教學。先專注於 hjkl 移動、操作符(d、c、y)和文字物件(w、b、{、(、[)。Vim 的強大之處在於將操作符與移動組合使用:dw(刪除單字)、ci'(修改引號內容)、gU$(大寫至行尾)。