Sublime text


Sublime text



Behind Facts · Post Post title Posting as Behind Facts

Sublime Text 3 is an amazing piece of software. To start, it is a clean, functional, and fast code editor. Not only does it have incredible built in features (multi-edit and vim mode), but it has support for plugins, snippets, and many other things.
I know there have already been many articles like this online, but I am teaching a class on Sublime Text and thought it would be good to have all the information online. In this article, we'll be diving into the best parts of Sublime Text. You've probably already heard of some of these, but maybe not some others.


Command Palette ctrl + shift + p

The command palette let's you access pretty much anything in the settings menus, call your package commands, change file syntax, handle Sublime projects, and so much more.

Table of Contents

For instance, you are able to call Git commands add, branch, commit, push, and pull all from the command palette.
To Usectrl + shift + p

File Switching ctrl + p

Sublime Text provides a really fast way to open up new files. Just press ctrl + p and start typing the name of the file you want. Once it shows up, just press enter and start typing directly into that file!
To Usectrl + p

Goto Symbols ctrl + r

When you have a large file with a bunch of methods, pressing ctrl + r will list them all and make them easier to find. Just start typing the one you want and press enter. To Usectrl + r
goto-symbolSublime Text 3 also has a new feature (Goto Definition). It provides Sublime Text with more capabilities closer to an IDE. Take a look at that if you're interested.

Multi-Edit ctrl + click

This is in my opinion, the absolute best feature of Sublime. After using it here, it's hard to go back to other text editors. There are many different ways to use multi-edit:
  • ctrl + d: Select the current word and the next same word
  • ctrl + click: Every place you click will create a cursor to edit
  • ctrl + shift + f AND alt + enter: Find a word in your files and then select them all


Snippets are yet another great feature of Sublime Text. You can use the pre-installed ones, build your own, or install a package that has more. All you have to do is type in a word and it will expand into your snippet. For example, typing lorem will generate lorem ipsum text.
To Use: Type a word that activates a snippet (ie lorem) and press tab.
Here's a great article on creating snippets.

Keyboard Shortcuts

The amount of keyboard shortcuts in Sublime are astounding. This is my other absolute best feature of Sublime. The less I can move away from the home keys on my keyboard, the more efficient I can be.
For a full list of the Sublime Text Keyboard Shortcuts, take a look at our keyboard shortcuts article.