Skip to content

Sublime

Jennifer Meade edited this page Mar 21, 2018 · 2 revisions

Sublime Text3

Here are some helpful tips, shortcuts, and plugins to make using Sublime Text3 feel sublime.

Keyboard Shortcuts

Move to next matching brace

^ (control) + M

Indent/Outdent (Edit>Line>Reindent)

(command) + [ or ]

Tab through open file windows

^ (control)+tab
This keyboard shortcut tabs through the open files in Sublime Text starting with the last used window.

Paste with proper indentation

(shift) + (command) + V

Paste from history

(command) + K then (command) + V

Incremental find

(command) + I
Incremental find lets you jump to a place in the doc when you hit enter (cursor goes to that location) or esc (cursor returns to its original location before the search)

Expand selection by tag

(shift) + (command) + A
This command expands your selection to the include the entire contents of a tag, working its way up the DOM each time you press it. Press once for contents of current tag. Press again to include surrounding tags. Press again for contents of parent tag, etc.

Expand selection by brackets (JS)

^ (control) + (shift) + M
This command expands the selection to brackets in JS files (behaves like expand selection by tag in html files).

Expand selection by indentation

(shift) + (command) + J

Goto Anything

(command) + P
The goto anything command allows you to jump to anything quickly. It will bring up a dialog showing all of the open files, from which you can select, but you can also use it to jump to different places in any of your files. For example, if you want to go to a specific line number in the current file, use the keyboard command and then type : + the line number.

Open the command palette

(command) + (shift) + P

Multiple cursors

(command) + click or select all lines and press (shift) + (command) + L (split into lines command)
This command creates a multiple editing selection (i.e., adds multiple cursors).

Add a matching element to the selection

(command) + D

Skip over adding an element to the selection

(command) + K

Plugins

These are my favorite plugins for Sublime Text:

Other Helpful Resources

GA Blog Post: Sublime Text 3 Tips and Tricks