Useful shortcuts! πŸ₯Έ



This content originally appeared on DEV Community and was authored by Margarita Potylitsyna

Visual Studio

Cmd + B – left panel
Cmd + J – toggle terminal panel
Cmd + K – clear terminal
Ctrl + C – interrupt the command
Cmd + Shift + P – command palette
Cmd + P – quick open file
Cmd + ← – jump to the beginning of the line (Ctrl + A)
Ctrl + E – jump to the end of the line
Cmd + / – toggle code comment
Cmd + F – find and replace
Cmd + Shift + F – find and replace global
Cmd + D – find the next selection
Cmd + U – step back
Option + ↓ – move line
Shift + Option + ↓ – duplicate line
Shift + Tab – add/remove tab spaces for multiple lines
Option + Click – add more cursors
Ctrl + Shift + ` – embedded Ruby (ERB) Tag Toggle

Mac OS

Cmd + Space – to launch apps (Spotlight)
Cmd + Tab – to switch between apps
Option + Cmd + ← – to switch between tabs within the same window
Cmd + 1 (2, 3, 4, …) – to jump straight to a tab number
Cmd + Shift + 3 (or 4) – to take a screenshot
Ctrl + Option + Cmd + ↑ – maximize window
Ctrl + Option + ← – left half
Ctrl + Option + β†’ – right half
Ctrl + scroll up and down (two-fingers on the trackpad) – to zoom the screen

Hard refresh for Chrome

F12, Option + Cmd + J (Mac), Ctrl + Shift + J (Win)
or right click on the refresh button and select β€œEmpty cash and hard reload”


This content originally appeared on DEV Community and was authored by Margarita Potylitsyna