Shortcuts¶
open command palette¶
Then search for what you needopen hide sidebar/secondary panel¶
open keybindings.json¶
This file contains your custom keybindings. I
Open the Command Palette by pressing
Ctrl + Shift + PType
Open Keyboard Shortcuts (JSON)and select the corresponding command
search text¶
select current word¶
select current line¶
When usingCtrl + C without any selection the line where the cursor is will be copied. copy line without newline¶
option 1:
Got to Settings
Search for "Editor: Copy with Syntax Highlighter" and uncheck it
option 2: using macros
install extensions
macroscreate a macro by adding it to
settings.jsonadd the macro to
keybindings.json
cut line¶
delete line¶
insert line¶
move/copy¶
comment/uncomment code¶
column selection¶
go to line¶
go to error¶
new terminal window¶
folding¶
mouse over the class or function, the folding arrows will be shown.
Ctrl + Shift + [: Fold the innermost uncollapsed region at the cursorCtrl + Shift + ]: unfolds the collapsed region at the cursorCtrl + K, Ctrl + 0: folds all regions in the editor.Ctrl+K, Ctrl+[n]where n is the level number upto which to foldCtrl + K, Ctrl + J: unfolds all regions in the editor.