Vscode

vscode

debug

  1. create launch.json
  2. add configuration by click button
  3. add field can do more custimzation

keyboard shortcuts

  1. view -> command pattern
  2. can see the key shortcut
  3. file -> preference -> key shortcut to change
  4. command K command S show all keyshort
  5. open preference keyboard shortcut json to have personalize key binding

setting

  1. can use json to custimize setting
  2. can set language based setting

open a file

  1. : go to a line
  2. @ go to a symbol
  3. ? view command suggestion
  4. # go to symbol in workplace

editing

  1. Format On Type and Format On Paste
  2. change lauguage command K M
  3. zen mode command K Z
  4. new pannel command \
  5. change pannel command 1 2 3
  6. change all occurance ctrl shift L
  7. alt + click to change select place
  8. alt + command + 上 copy line
  9. alt 上下 move line
  10. ctrl comand shift 左右 group selection
  11. F12 go to definition, shift F12 go to reference

snippets

Code > Preferences > User Snippets on macOS

command

  • code --diff <file1> <file2>
  • code -n new window

window

  • Errors and warnings ⇧⌘M
  • F8 go to the error and warning
  • navigation history window ctrl tab
  • navigate back ctrl -

tasks

  • write build / run task
  • command + shift + B run task
  • can config user tasks
  • can config tasks depend on other tasks