This is the most important list of the shortcuts every developer should learn asap. I wish I knew them when I started my career as a developer so i could save my time on manual typing.
Pretty easy. Move line up and down.
For mac use Opt+Down or Opt+Up
You can format the whole active file or ask you to download a Formatter extension. I love to use Prettier extension to format JS code
For mac use Shift + Option + F
For Windows use Shift + Alt+ F
You can easily toggle between comment and uncomment line behavior.
For mac use Cmd+/
if you need to add the occurrences of the current selection one by one then use Ctrl + D. every time you press the key Ctrl + D it adds a new occurrence to the selection.
For mac use Cmd+D
Similar to the previous one but it adds additional cursors to edit all occurrences of the current selection. Probably lower error-prone than doing search and replace all.
For mac use Cmd + Shift + L.
#vscode #efficiency #coding #programming