快捷键

配置VS Code的快捷键

参考官方的 Keyboard reference sheets:

https://code.visualstudio.com/docs/getstarted/tips-and-tricks#_keyboard-reference-sheets

Linux

General

  • Ctrl+Shift+P, F1 Show Command Palette
  • Ctrl+P Quick Open, Go to File…
  • Ctrl+Shift+N New window/instance

basic editing

Rich langurage editing

  • Ctrl+Shift+I Format document
  • F12 Go to Definition
  • F2 Rename Symbol
  • Ctrl+K M Change file language

Gavitation/导航

这里有两个最重要的快捷键:

  • Ctrl+Alt+- Go back
  • Ctrl+Shift+- Go forward

比较常用的:

  • Ctrl+G Go to Line…
  • Ctrl+P Go to File…
  • Ctrl+Shift+O Go to Symbo

mac