Best Sublime Text Packages for WordPress Development

  Introduction

Sublime Text 2 has become my favourite editor for many reasons. In this post I list some of my favourite packages and resources for learning more about Sublime Text 2 usage.

WP Mayor’s work is supported by its audience. If you purchase through a link on our website, we may earn a commission. Here’s why you can trust us.
Table of contents

Sublime Text 2 has become my favourite editor for many reasons.

It is a great editor out of the box, however there are a few packages that can really make it fly. The ones I mention in this post are especially target towards WordPress development.

First I suggest you download the Package Control package which will give you a better interface for adding and managing plugins.

To install packages with the Package Control Package, click CTRL+SHIFT+P, then type Package Control: Install Package.

Sublime 2 WordPress Package

Sublime Text 2 WordPress Package is a collection of WordPress snippets and autocompletions for Sublime Text 2.

SublimeXDebug

Simple client to connect with XDebug.

One thing I haven’t gotten to work as smoothly as I had with Komodo IDE, is debugging via Xdebug. There is however a package which adds Xdebug facilities to Sublime Text.

PhpTidy

This is a Sublime Text 2 plugin allowing you to format your PHP code.

Search WordPress Codex

As the name suggests, Search WordPress Codex lets you search the WP Codex from within the editor. Furthermore, you can right-click on any given function within the code, and it can take you to the function’s reference page in the Codex. It can be super useful if you need to refer to the Codex regarding a given function or coding style.

DocBlockr

DocBlockr is a Sublime Text 2 package which makes writing JSDoc comments and PHPDoc comments a breeze.

WordPress New Project Config

WordPress New Project Config can save you a lot of time each time you start a new WP project. As such, this script can create a new folder with the project name, install the latest WordPress build automatically, fetch and install your chosen starter theme, eliminate default WP themes and the Hello Dolly plugin, create a database and table and finally, launch your project in Sublime Text 2.

It uses wp-phptidy, which is a little tool for formatting PHP code to conform the WordPress Coding Standards.

SublimeHTMLTidy

This is a Sublime Text 2 plugin allowing you to clean and tidy up your HTML code.

It uses a version of libtidy, which comes bundled with PHP 5.

SublimeWordPressCodex

This is a Sublime Text 2 plugin allowing you to easily search the WordPress Codex.

Most of all it let’s you right-click on any WordPress function and select ‘WordPress Function Reference’ to open the Codex page for this function.

SublimeText2StackOverflow

Same as previous but connects to Stack Overflow

Genesis

If you are working on WP theme development using the Genesis framework, this particular Sublime Text extension might be useful for you, as it contains a bunch of handy snippets that you can use Genesis child theme development that little bit easier.

SublimeLinter

SublimeLinter is a plugin that supports “lint” programs (known as “linters”). SublimeLinter highlights lines of code the linter deems to contain (potential) errors. It also supports highlighting special annotations (for example: TODO) so that they can be quickly located.

BracketHighlighter

This is a fork of pyparadigm’s SublimeBrackets and SublimeTagmatcher.

SublimeText2Git

Git integration: it’s pretty handy. Who knew, right?

Sublime Alignment

A simple key-binding for aligning multi-line and multiple selections in Sublime Text 2.

Here are some excellent articles about using Sublime Text 2 for PHP and WordPress development

http://blog.stuartherbert.com/php/2012/02/28/setting-up-sublime-text-2-for-php-development/

http://drewbarontini.com/setup/sublime-text/

http://clintberry.com/2012/sublime-text-2-php-symfony-development/

http://net.tutsplus.com/tutorials/tools-and-tips/sublime-text-2-tips-and-tricks/

Also make sure you checkout this free video series on how to set up your workflow in Sublime Text 2:

https://tutsplus.com/course/improve-workflow-in-sublime-text-2

If you enjoyed this post, make sure to subscribe to WPMayor’s RSS feed.

Jean Galea
Jean Galea
Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.
Jean Galea
Jean Galea
Jean Galea is an investor, entrepreneur, and blogger. He is the founder of WP Mayor, the plugins WP RSS Aggregator and Spotlight, as well as the Mastermind.fm podcast. His personal blog can be found at jeangalea.com.
PeachPay for WooCommece

An all-in-one checkout and payment solution for WooCommerce . See your store's sales increase by 35%!

4 Months FREE with WP Engine

4 months free on all shared managed WordPress and eCommerce hosting plans. Offer ends on 12/01/2022.

Expand your toolset with expertly verified solutions delivered to your inbox every week.
Join thousands of designers, developers, and marketers who trust our experts to find and test the best tools for their WordPress sites.
By signing up to our newsletter, you agree to receive electronic communications from WP Mayor that may include advertisements.
Expand your toolset with expertly verified solutions delivered to your inbox every week.
Join thousands of designers, developers, and marketers who trust our experts to find and test the best tools for their WordPress sites.​
By signing up to our newsletter, you agree to receive electronic communications from WP Mayor that may include advertisements.

9 Responses

  1. Hey there, just wanted to drop by and let everyone know I’ve made a plugin for Sublime Text 2 and 3 that allows you to edit posts, pages, custom post types, settings, and taxonomy terms for a WordPress site from within Sublime. You can also upload a media attachment and assign it as a featured image on a post or page.

    You can find out more here: http://dnstbr.me/labs/sublpress/

    I’m looking for feedback and comments on how it can be improved or how you can see yourself using it. Thanks! 😀

  2. Hey Jean!
    Thanks for talking about WordPress New Project Config!
    I would like to clarify that the script is not a Sublime package
    It’s a shell script which do a lot of other things and in the configure a sublime project and lauch the app
    I Would like to add that it doesn’t use wp-phptidy too.
    Best,
    j

  3. Back with more. Speckyboy recently did a list at http://speckyboy.com/2013/02/18/wordpress-extensions-for-sublime-text-2/

    There are 4 plugins not mentioned here (really 5 but one doesn’t make sense since it’s for TextMate, not Sublime):

    > Sublime Text Snippet Library For WP
    > Sublime Text Snippets
    > WordPress Readme to Markdown
    > CSSFormat (not specifically WP)

    Overall your list more complete only missing these 3 or 4, whereas theirs is missing 6 listed here.

  4. Great article. I’m trying this out as outlined. Currently I use PhpStorm for most of my WordPress stuff.

    One additional plugin I discovered for Sublime is “Genesis” to add framework snippets if you happen to use the framework.

    DJ

Leave a Reply

Your email address will not be published. Required fields are marked *

From web hosting to WooCommerce plugins and backup services, we have put together a collection of exclusive coupons and deals just for you.
WP Mayor_Icon_white
2022 Reader Survey