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.

Alignment

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

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.

SublimeLinter

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

Linter

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

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.

17 thoughts on “8 necessary Sublime Text plugins

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

    Like

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

      Like

    2. 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.

      Like

  2. 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)
    http://codeivate.com/users/myles

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

    Liked by 1 person

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

    Like

  4. 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.

    Like

Comments are closed.