Nicholas Cerminara
This tutorial is out of date and no longer maintained.
Sublime Text 3 is a blast to develop with. We’ve got a ton of feedback 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.
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 the 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.
Heads Up! Sublime Text may be downloaded and evaluated for free, however, a license must be purchased for continued use. There is no enforced time limit for the evaluation.
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.
Package Control is a package manager for Sublime that allows you to easily install any of the hundreds of awesome plugins made by other developers. The best part is, you’ll never have to leave Sublime to search, install, or remove these.
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:
OS | KEYS |
---|---|
Apple | COMMAND+SHIFT+P |
Windows | CTRL+SHIFT+P |
Use this command to navigate to open new files. The search is extremely smart, and lets you do things like:
style.css
power.js
index.php
some-path/index.php
OS | KEYS |
---|---|
Apple | COMMAND+P |
Windows | CTRL+P |
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:
OS | KEYS |
---|---|
Apple | COMMAND+R |
Windows | CTRL+R |
OS | KEYS |
---|---|
Apple | COMMAND+P then @ |
Windows | CTRL+P then @ |
OS | KEYS |
---|---|
Apple | COMMAND+SHIFT+R |
Windows | CTRL+SHIFT+R |
Sometimes you quickly want to just select all similar 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.
OS | KEYS |
---|---|
Apple | COMMAND+D |
Windows | CTRL+D |
OS | KEYS |
---|---|
Apple | COMMAND+MOUSE-CLICK, MOUSE-CLICK, MOUSE-CLICK... |
Windows | CTRL+MOUSE-CLICK, MOUSE-CLICK, MOUSE-CLICK... |
Here are some others that 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.
OS | KEYS |
---|---|
Apple | COMMAND+CONTROL+SHIFT+F |
Windows | SHIFT+F11 |
OS | KEYS |
---|---|
Apple | COMMAND+K, COMMAND+B or COMMAND+K+B |
Windows | CTRL+K+B |
OS | KEYS |
---|---|
Apple | COMMAND+/ |
Windows | CTRL+/ |
OS | KEYS |
---|---|
Apple | COMMAND+SHIFT+D |
Windows | CTRL+SHIFT+D |
OS | KEYS |
---|---|
Apple | COMMAND+OPTION+1 to 4 |
Windows | ALT+SHIFT+1 to 4 |
OS | KEYS |
---|---|
Apple | COMMAND+SHIFT+5 |
Windows | ALT+SHIFT+5 |
OS | KEYS |
---|---|
Apple | CONTROL+G |
Windows | CTRL+G |
Continue your learning with Themes, Color Schemes, and Cool Features.
Thanks for learning with the DigitalOcean Community. Check out our offerings for compute, storage, networking, and managed databases.
This textbox defaults to using Markdown to format your answer.
You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!