/shortcutkeys

Mac/windows Code Editor shortcut keys

MIT LicenseMIT

Code Editor shortcutkeys

Mac/Windows

Cut, Copy, Paste

Mac

Cut: ⌘ + X Copy: ⌘ + C Paste: ⌘ + V

Windows/Linux

Cut: Ctrl + X Copy: Ctrl + C Paste: Ctrl + V

Undo, Redo

Mac

Undo: ⌘ + Z Redo: ⌘ + ⇧ + Z or ⌘ + Y

Windows/Linux

Undo: Ctrl + Z Redo: Ctrl + ⇧ + Z or Ctrl + Y

Duplicate

Mac

⌘ + ⇧ + D with or without text highlighted

Windows/Linux

Ctrl + ⇧ + D with or without text highlighted

Select

Mac

Select Word: ⌘ + D Select Line: ⌘ + L Select All: ⌘ + A Select Every Instance: ⌘ + Ctrl + G

Windows/Linux

Select Word: Ctrl + D Select Line: Ctrl + L Select All: Ctrl + A Select Every Instance: Alt + F3

Move Cursor

Mac

Move Cursor to Previous Word: Alt + ← Move Cursor to Next Word: Alt + → Move Cursor to Start of Line: ⌘ + ← Move Cursor to End of Line: ⌘ + → Move Cursor to Start of Document: ⌘ + ↑ Move Cursor to End of Document: ⌘ + ↓

Windows/Linux

Move Cursor to Previous Word: Ctrl + ← Move Cursor to Next Word: Ctrl + → Move Cursor to Start of Line: Home Move Cursor to End of Line: End Move Cursor to Start of Document: Ctrl + Home Move Cursor to End of Document: Ctrl + End

Jump

Mac

Jump to Opening/Closing Parentheses, Brackets, Braces: Ctrl + M Jump to Definition: ⌘ + R

Windows/Linux

Jump to Opening/Closing Parentheses, Brackets, Braces: Ctrl + M Jump to Definition: Ctrl + R

Indent, Unindent

Mac

Indent: Tab or ⌘ + ] Unindent: ⇧ + Tab or ⌘ + [

Windows/Linux

Indent: Tab or Ctrl + ] Unindent: ⇧ + Tab or Ctrl + [

Toggle Comment

Mac

⌘ + /

Windows

Ctrl + /

Tab Management

Mac

New Tab: ⌘ + N Switch Tab Left: ⌘ + ⇧ + [ Switch Tab Right: ⌘ + ⇧ + ] Close Tab: ⌘ + W Reopen Tab: ⌘ + ⇧ + T

Windows

New Tab: Ctrl + N Switch Tab Left: Ctrl + PgUp Switch Tab Right: Ctrl + PgDn Close Tab: Ctrl + W Reopen Tab: Ctrl + ⇧ + T

Quick Open

Mac

⌘ + P

Windows/Linux

Ctrl + P

Find

Mac

⌘ + F

Windows

Ctrl + F

More at Sublime Text http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_osx.html (### Mac) http://docs.sublimetext.info/en/latest/reference/keyboard_shortcuts_win.html (### Windows/Linux) Atom https://github.com/nwinkler/atom-keyboard-shortcuts

** Note - Consolidated from Udacity and this pre-text is owned by Udacity.