DEV Community

Margarita Potylitsyna
Margarita Potylitsyna

Posted on

Useful shortcuts! 🥸

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"

Top comments (2)

Collapse
 
amnezia profile image
Max Jamesin

thanks, I've discover few useful shortcuts

Collapse
 
ritumka profile image
Margarita Potylitsyna

Always welcome!