掌握 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$(大写至行尾)。