Skip to content

Instantly share code, notes, and snippets.

@nikeshashar
Forked from zoeabryant/sublime-talk.md
Created August 7, 2014 08:28
Show Gist options
  • Save nikeshashar/8d8f4d39c0e8192edfb8 to your computer and use it in GitHub Desktop.
Save nikeshashar/8d8f4d39c0e8192edfb8 to your computer and use it in GitHub Desktop.

Sublime Text talk cheatsheet

For Makers Academy Talk

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

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