VSCode

Shortcuts

  • 设置-Settings: ⌘,
  • 命令-Command Palette: ⇧⌘P
    • Preference
      • Color theme
    • Git
    • Format
    • View
      • Close All Editors
  • 快速打开-Quick Open: ⌘P
    • go to line: :
  • 跳转-Go to Symbol:
    • in file: ⇧⌘O
    • in workspace: ⌘T
  • 重命名-Rename Symbol: F2
  • 移动到侧边栏-Move to Explorer Window: ⇧⌘E
  • Markdown预览-Markdown Preview: ⇧⌘V

Views

  • Sidebar: ⌘B
  • Panel: ⌘J
  • Teminal: ⌃`
  • Errors and Warnings: ⇧⌘M
    • cycle through errors: F8/⇧F8
  • Extensions: ⇧⌘X
  • Side by Side Editing: ⌘\

Editing

  • Multi Cursor Selection
    • ⌥⌘↑ or ⌥⌘↓
    • Option + Click / Option + Shift + Click
  • Select All Occurences: ⇧⌘L
  • Select Next Occurence: ⌘D
  • Select Currnet Line: ⌘L
  • Delete Current Line: ⇧⌘K
  • Copy Line Up/Down: ⇧⌥↑ or ⇧⌥↓
  • Move Line Up/Down: ⌥↑ or ⌥↓
  • Shrink / Expand Selection: ⌃⇧⌘← or ⌃⇧⌘→
  • Rename Symbol: F2
  • Code Formatting: ⇧⌥F
  • Refactor: ⌃⇧R
    • Extract variable
    • Extract method

Goto

  • Go to Definition
    • F12
    • Cmd + Click
  • Go to References
    • ⇧F12
    • All references: ⇧⌥F12
  • Next Error
    • F8
  • Navigate Back
    • Ctrl + -
  • Search: ⌘F
  • Replace: ⌥⌘F
  • Regular Expression: ⌥⌘R

Commands

Settings

  • Open Settings
  • Color Theme

Views

  • Close All Editors
  • Collapse Folders in Explorer
  • Copy Relative Path of Active File

Format

  • Reload Window
  • Sort Lines Ascending
  • Transform to Title Case/Uppercase/Lowercase
  • Change Tab Display Size

Remote

  • Connect to Host

Jupyter

  • New Jupyter Notebook

Remote Development

安装插件Remote SSH

Themes

https://vscodethemes.com/