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 + click
to change select placealt + command + 上
copy linealt 上下
move linectrl comand shift 左右
group selectionF12
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