Visual Studio Code Guide
What are the minimum keyboard shortcuts required for VS code to be effective?
Have you ever wondered what are VScode keyboard shortcuts you/others use most of the time? If you closely look into your daily activities, you will realize that most of the results you get with minimum effort. A similar observation was made by the economist Vilfredo Pareto, "80% of the results originate from 20% of the effort", called Pareto Principal. What are the minimum shortcuts required for VS code to be effective?
You may not find the exact 80/20 rule in practice but, somewhat close to it.
By fixing 20% of the bugs, Microsoft would have eliminated 80% of the related problems in the system.
According to COCOMO, 80% of the software code takes 20% of the allocated time. On the other hand, the complex part(20%) of the software takes 80% of the time.
I find that below mentioned Visual Studio Code keyboard shortcuts are the 20% of shortcuts I use for 80% of the coding work.
Editing
⌘X
- cut a line⌘C
- copy a line⇧⌘K
- delete a line⌘L
- select the line⇧⌘ Enter
- Insert line above.⇧⌥ up/down
- copy current line to up/down⌥ up\down
- move the line up and down⌘d
- select a word⌥ click
- multi-cursor selection
Searching
⌥F12
- to peek at the definition⌘F
- find a word or a phrase in the current file⌘⇧F
- find a word or a phrase in the current projectF2 - rename a replace the subsequent occurrence of the reference.
⌘D
- find other instances of selected code⌘P
- find and go to file (quick open)
Formatting
⌘⌥[
- folding innermost code block⌘⌥]
- unfolding outermost code block⇧⌥F
- code formatting⌥Z
- toggle word wrap⌘N
- open a new tab⌘W
- close the current tab⌘B
- toggle visibility of the side panel⌃`
- toggle visibility of the integrated terminal⌘2
- split the screen into two editor groups⇧⌘T
- reopen the recently closed editor⌥⌘←
and⌥⌘→
- view the editor tab on the left/right