Skip to content

Instantly share code, notes, and snippets.

@wooglie
Last active June 10, 2020 10:03
Show Gist options
  • Save wooglie/f532843e78f0893179095f94ae4abfe7 to your computer and use it in GitHub Desktop.
Save wooglie/f532843e78f0893179095f94ae4abfe7 to your computer and use it in GitHub Desktop.
Make your life easier with keyboard shortcuts

Tabs

cmd + alt + (left & right arrows) go left or right by 1 tab
cmd + n go to tab n tab
cmd + t open new tab
cmd + shift + t open last closed tab
cmd + w close tab
cmd + r reload

Chrome

cmd + d bookmark this page
cmd + y open history
cmd + l focus url bar
cmd + alt + f search google
cmd + n new tab
cmd + shift + n new incognito tab
cmd + alt + i open/close developer console
cmd + alt + j open/close js console

Window

cmd + q close app
cmd + shift + q close all instances of app
cmd + h hide app
cmd + ctrl + f toggle fullscreen

Editors

cmd + s save file
cmd + shift + s save all files
cmd + o open
cmd + p print
cmd + (left & right arrows) go to start/end of line
cmd + (up & down arrows) go to top/bottom of file
alt + (left & right arrows) go to start/end of word | go to next word
shift + (left & right arrows) mark text left/right by single char
fn + <- delete (from left to right) fn + cmd + <- delete to right end cmd + <- delete to left end

VScode

cmd + f find in file
cmd + shift +f find in project
cmd + r replace in file
cmd + shift +r replace in project
cmd + p open file
cmd + shift + p enter vscode command
alt + (up & down arrows) move current line up/down
cmd + b hide/show sidebar
cmd + shift + e switch to explorer on sidebar
alt + shift + i multiple line cursor on end of line

Common

cmd + z undo
cmd + shift + z redo
cmd + x cut
cmd + c copy
cmd + v paste

CLI

ctrl + a go to begining of a line
ctrl + e go to end of a line
ctrl + c exit bash program
fn + enter dismiss current command

Mac

ctrl + cmd + q lock screen
cmd + shift + 4 capture part of screen
cmd + shift + 3 capture whole screen
alt + shift + (volume up/down) smaller step in volume change

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment