8 necessary Sublime Text plugins

Sublime Text is a fantastic code editor – far superior and faster than editors I’ve used in the past such as Coda and Espresso.

There are many plugins/packages for SublineText to add features and tailor the experience to your work flow; these are my favourites.


This lets you hit COMMAND-CTRL-A to align your PHP code with spaces. I usually use it to align my arrays and variables nicely to keep code readable.


DocBlockr eases the creation of docblocks in your PHP code – simply type /** and hit enter when above a function or class and a blank docblock will be created ready to edit.


I personally use SublimeLinter-PHP the most. This lets you have errors highlighted in your code as your type:


Very handy when debugging, and to find silly mistakes. Just a note on this one, to get it working I had to edit /etc/php.ini and set display_errors = On to get it working in Mavericks.

Synced sidebar

When working in projects with the sidebar visible, this simply highlights/scrolls the sidebar to show the current file you are editing. When I have many files open this does make the sidebar easier to work with.

Sidebar enhancements

Sidebar enhancements adds more context menus to your sidebar:

Sidebar Menus

I use reveal and rename quite a bit so this saves time.


Trimmer will strip whitespace from your files when you hit CTRL+S.

Sublime FTP

This package isn’t free, but it is darn useful. Add a sftp-config.json to your project with FTP connection details, and this extension will allow FTP uploads and downloads. I use this when developing locally, but pushing to a remote server.

Sublime Text 2 WordPress

Adds auto-completion and snippets for WordPress functions. For forgetful folk 🙂

Installing these plugins with Package Control

Every user of Sublime Text should grab this first. Once installed it makes installing other packages a breeze, letting you open the command palette (SHIFT+COMMAND+P) and then choose “install package” to view and install available plugins.

Any others?

If you use SublimeText, what packages would you recommend? Share in the comments.

Show CommentsClose Comments


  • ghost1227
    Posted December 17, 2013 at 2:41 pm 0Likes

    Pretty much what I’m already using, but I add JSON Reindent and HTML-CSS-JS Prettify to the list.

  • croixhaug
    Posted December 17, 2013 at 4:34 pm 0Likes

    Bracket Highlighter – indispensable for seeing what scope you’re in

    • ghost1227
      Posted December 18, 2013 at 6:54 am 0Likes

      Good plugin, but I got rid of it when I discovered that better than half the time scope > visible page height for me >_<

    • mikejolley
      Posted December 18, 2013 at 3:28 pm 0Likes

      I use bracket highlighter too, but tbh its not that useful because if you format your code the right way, the ‘grid’ lines added by sublime are enough.

  • rzen
    Posted December 17, 2013 at 6:43 pm 0Likes

    Excellent list! Here are two more really clever packages for you, and anyone else who might be interested:

    PhpTidy adds support for formatting code to WP core standards: https://sublime.wbond.net/packages/PhpTidy

    Modific will add markers to the line gutter to indicate which parts of a version-controlled file have been altered since the last commit: https://sublime.wbond.net/packages/Modific

    • mikejolley
      Posted December 18, 2013 at 3:27 pm 0Likes

      I could never get PhpTidy to work before. I’ll have to give it another go.

      • ghost1227
        Posted December 18, 2013 at 3:37 pm 0Likes

        Me neither…

  • Myles McNamara
    Posted December 18, 2013 at 12:14 am 0Likes

    These plugins are a must for me:

    emmet (emmet.io) amazing auto generate html,

    find function definition (or whocalled) great when need to track down a function,

    FileDiffs to compare two files or tabs,

    LiveReload so you never have to press refresh in browser again,

    Codeivate to track your coding (lang, time, etc)

    Those are a few must haves for me, with other ones as well like terminal, adb, etc, for project specific needs. PhpTidy, etc.

  • Norcross
    Posted December 18, 2013 at 5:30 am 0Likes

    I also use Emmet: great for things like CSS. and the SCSS package to give my SASS files the same syntax highlighting as regular CSS.

    • mikejolley
      Posted December 18, 2013 at 3:26 pm 0Likes

      That one does look pretty cool – gonna check it out.

    • Matt Soria
      Posted December 20, 2013 at 10:12 am 0Likes

      Yeah, Emmet is for sure a must-have

  • armno
    Posted December 20, 2013 at 3:02 am 0Likes
  • Austin Wulf
    Posted December 20, 2013 at 4:43 pm 0Likes

    I’d also add Autoprefixer, because it’s great not to have to worry about browser prefixes when writing CSS.

  • Jason LeMoine
    Posted December 22, 2013 at 7:24 pm 0Likes

    GitGutter [https://github.com/jisaacks/GitGutter]

  • Jenny
    Posted January 9, 2014 at 3:15 pm 0Likes

    definitely Sublimerge should be one of “core” packages: http://www.sublimerge.com/

  • maurice
    Posted April 22, 2014 at 11:54 am 0Likes

    Thank you for your list! I will have a look at trimmer, sounds good.

    I wrote a blogpost about the plugins I use (http://www.maurice-renck.de/en/blog/top10-sublime-text-plugins/) Have a look, if you like.

  • Michael Musgrove
    Posted June 15, 2014 at 2:30 am 0Likes

    SublimeMagick, CleanCSS, Alignment, and Bracket Highlighter are useful as well. So many nice plugins for ST2/3. Adobe’s Brackets is an open-source editor that’s worth a close look as well for anyone in the market, but as a creature of habit I just can’t stop using ST3 as my main editor. Love it.

Comments are closed.

%d bloggers like this: