Sunday, December 14, 2014

Sublime Text Tips and Tricks

Sublime Text is a popular cross-platform text and source code editor. Part of the appeal of Sublime Text is its simplicity. But if you look a litter deeper, you'll find a lot of cool features hidden underneath.

Tab Completion

Pressing tab will expand the text to the left of the cursor into the best match.

For exmaple:
  • html + tab creates the basic html document structure
  • php + tab creates a php block
  • lorem + tab inserts place holder text

Switching Between Tabs 

Often there are a lot of tabs open when working on a project. You can quickly cycle through tabs using keyboard shortcuts.

  • command + shift + ] will bring you to the next tab
  • command + shift + [ will bring to the previous tab 

Search All Files

The keyboard shortcut command + shift + f will give you the option to search all open files and folders. After searching you'll be presented with a results page. To jump to a specific match, simply double-click on a line.


Alphabetical Sorting

Putting things in a particular order can make them more organized. I like to organize my CSS properties in alphabetical order. In Sublime Text you can highlight CSS properties and hit F5 to sort them alphabetically.



Spell Checker

I do most of my writing in Sublime Text. If you're a bad speller like me you can enable the spell checker by hitting F6.


For more tips check out Sublime Text's unofficial documentation.



No comments:

Post a Comment