Skip to content

Instantly share code, notes, and snippets.

@zoeabryant
Last active August 29, 2015 14:04
Show Gist options
  • Save zoeabryant/91225497a3d32349bd1d to your computer and use it in GitHub Desktop.
Save zoeabryant/91225497a3d32349bd1d to your computer and use it in GitHub Desktop.
Sublime Text Shortcuts - Talk prep

Sublime Text talk cheatsheet

For Makers Academy Talk

Update 6/10/14 So I'm back at makers one day and I find out this list is still in use, and has been passed onto the new cohort as well! I'm so glad it is useful. With this in mind, I have updated it a little bit. There are now sections: Moving around open files and Split working areas. I hope these will be of use to you. Also a shout out to the awesome Tatiana Soukiassian who has carried on the shortcut love and created another fantastic list of keyboard shortcuts for sublime and beyond, listed by how essential they are. Much love Tatiana!!

Keys

⌘ Command key

⌃ Control key (ctrl)

⌥ Alt key (option)

⇧ Shift Key

► right arrow

◄ left arrow

▲ up arrow

▼ down arrow

fn Function Key

Command palette

press: ⌘ ⇧ P

do: start typing and press enter on the command that you would like to use

try: converting some stuff to lower or uppercase. Word wrap your file. Reindent some code. Change the file syntax to HTML.

basically: The command palette is a quick way to access all of the commands in the edit menu at the top.

Moving around the file

  • ⌥ skip over words
  • ⌘ ► skip to the end of a line
  • ⌘ ◄ skip to the start of a line
  • ⌘ ▲ skip to the start of the file
  • ⌘ ▼ skip to the bottom of the file

Indentation

  • ⌘ [ unindent
  • ⌘ ] indent

Commenting

  • ⌘ / comments out a line

Highlighting

  • ⇧ to highlight
  • Use the 'moving around the file' commands whilst holding ⇧

Duplicating lines

  • ⌘ ⇧ D

Moving lines around

  • ⌃ ⌘ ▲ Move a line up
  • ⌃ ⌘ ▼ Move a line down

Words

  • double clicking on words highlights them
  • ⌘ D selects next instance of a word

Multiple Selections!

  • Hold ⌘ and click on lines to edit at the same time
  • ⌘ ⇧ L on a selected block of code splits it into lines to edit

Moving around files

  • ⌘ P and type like you would in the command palette

Moving around open files

  • ⌘ ⌥ ► : move forwards through the open files
  • ⌘ ⌥ ◄ : move backwards through the open files
  • ⌃ 1-9 : move to the open file or open area #1, #2 etc

Split working areas

  • ⌘ ⌥ 1-4 : Splits the into working areas horizontally according to the number.
  • ⌘ ⌥ 5 : Splits into 4 working areas in each corner of the screen

Search functionality

  • ⌘ F to search in the file
  • ⌘ ⇧ F to search in open folder
  • hover over the buttons on the side to get a little popup saying what they do.

Extras

  • ⌃ T is transpose (hightlight two sections and swap em)
  • fn backspace deletes forward, a la windows

In General

  • It saves so much time
  • Just spend an hour or force yourself to use them until you get the hang of it
  • At least know they exist.

Find more

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