Sublime Text 3 is a
blast to develop with. We’ve gotten a ton of feeback since our last article that Chris shared. These posts are intended to be a sequel to that, with all your feedback collected, and some new findings of our own. This series will take you from a plain vanilla install of Sublime Text 3 to having it be your personal supercharged text editor with the best plugins, features, settings, and themes available on the web. We’ve also put together as many short HTML5 video demos of it as possible so you can see the beauty of Sublime Text 3 in action.
Step 1: Install
At the time of writing this, Sublime Text 3 is still in
Public Beta; however, I wouldn’t let that scare you off from making jump from 2 to 3. I have found no problems with it, and most plugins seem to now support it. You can download the Sublime Text 3 Public Beta here.
Step 2: Install Package Control
Sublime Text Packages are
anything from plugins, syntax highlighting definitions, menus, snippets and more. The real beauty comes from the developers who make these packages.
Chris has already written a pretty extensive post on Sublime Text 3 Shortcuts. You can find that post
here. Below you’ll find some of the best keyboard shortcuts and tricks that stand out amongst them all.
This is one of the most used commands. Just popup open the Command Palette and search for things like settings, options, syntax, and shortcuts. Most third-party packages that you’ll install hook into this. One of the first things I do when I install a plugin is see what it added to the Command Palette. Some examples of things you can access are:
- Changing Syntax
- Snippets from Plugins
- Actions from plugins (Git Commands, Block Comments, etc.)
|Apple ||⌘ + ⇧ + p|
|Windows ||ctrl + shift + p|
Ultra-Fast File Switching
Use this command to navigate to open new files. The search is extremely smart, and lets you do things like:
|Apple ||⌘ + p|
|Windows ||ctrl + p|
Go to Symbol / Definition / Method / Function
This functionality is awesome, and IDE fans and users surely will appreciate this. Sublime Text 3 indexes functions, methods, definitions, etc. so you can search them and easily switch to them. Sublime Text 3 also has the added benefit of being able to search these project wide (something Sublime Text 2 was lacking). Some example use cases for this are:
- Quickly going to a function on the current page.
- Going to a function on another page.
- Search an entire project for a function.
Searching the Same Page
|Apple ||⌘ + r|
|Windows ||ctrl + r|
Search a file then search that page
|Apple ||⌘ + p then @|
|Windows ||ctrl + p then @|
Search an entire project
|Apple ||⌘ + ⇧ + r|
|Windows ||ctrl + shift + r|
Multi Select and Edit
Sometimes you quickly want to just select all similiar strings or words, or, sometimes, you need to edit on multiple lines the same thing. Expert Vim users will probably laugh at this, but this is a ridiculously useful and easy tick.
|Apple ||⌘ + d|
|Windows ||ctrl + d|
|Apple ||⌘ + mouse-click, mouse-click, mouse-click…|
|Windows ||ctrl + mouse-click, mouse-click, mouse-click…|
Here’s some others that I felt weren’t their own video, but are still definitely worth checking out. We also already have an entire article on
Sublime Text 3 keyboard shortcuts already written out. I recommend checking that out and testing all the shortcuts to see which ones work with your developer workflow.
Distraction Free Mode
|Apple ||⌃ + ⇧ + ⌘ + F|
|Windows ||shift + F11|
|Apple ||⌘ + K, ⌘ + B or ⌘ + K + B|
|Windows ||ctrl + k + b|
|Apple ||⌘ + /|
|Windows ||ctrl + /|
|Apple ||⌘ + ⇧ + d|
|Windows ||ctrl + shift + d|
|Apple ||⌘ + ⌥ + 1 to 4|
|Windows ||alt + shift + 1 to 4|
Four Panes (2×2)
|Apple ||⌘ + ⌥ + 5|
|Windows ||alt + shift + 5|
Go to Line
|Apple ||^ + G|
|Windows ||ctrl + G|