Vscode
vscode
debug
- create
launch.json - add configuration by click button
- add field can do more custimzation
keyboard shortcuts
- view -> command pattern
- can see the key shortcut
- file -> preference -> key shortcut to change
- command K command S show all keyshort
- open preference keyboard shortcut json to have personalize key binding
setting
- can use json to custimize setting
- can set language based setting
open a file
:go to a line@go to a symbol?view command suggestion#go to symbol in workplace
editing
- Format On Type and Format On Paste
- change lauguage command K M
- zen mode
command K Z - new pannel
command \ - change pannel
command 1 2 3 - change all occurance
ctrl shift L alt + clickto change select placealt + command + 上copy linealt 上下move linectrl comand shift 左右group selectionF12go to definition,shift F12go to reference
snippets
Code > Preferences > User Snippets on macOS
command
code --diff <file1> <file2>code -nnew 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