Adding Visual Studio Code Debug Configuration

In earlier posts, I’ve talked a bit about Visual Studio Code the least of which not being the importance of debugging your code with Xdebug.

One of the questions I’ve received (and seen elsewhere around the web) is how to actually setup Visual Studio Code debug configuration. That is, you have Xdebug installed, you have the module specific in your PHP configuration file, but there’s no way to actually activate the debugger within the IDE.

Instead, you see something like this:

Visual Studio Code Debug Configuration

This is an easy fix.

Read More

Merry Christmas!

It’s a couple of days early but given that Christmas is on a Sunday this year, it seems to make sense to say this today rather than sometime during the weekend.

Especially since most of us will be spending time elsewhere than on this blog, right? 😎

Read More

Stop Indexing All PHP Files in PHP CodeSniffer

If you’re working with PHP CodeSniffer in your WordPress project, then you’re likely familiar with how much time it takes to complete indexing all PHP files.

You start up your IDE, configure PHPCS, point it to your set of WordPress rules, and then wait for it to begin doing its job. Don’t get me wrong: I love having it sniff the code while writing it, but it also takes a bit of time for it to finish parsing it.

Indexing All PHP Files

Stop PHPCS From Indexing All PHP Files.

Granted, this is true of likely any PHP-based project, but how many of those do I write about here? 🙂

Read More

Happy Thanksgiving!

We’re celebrating Thanksgiving in the United States today. If you’re doing the same, Happy Thanksgiving!

Happy Thanksgiving 2016

Meghan did an awesome job with the table – if was left to me, there’d be no photo. :)

If not, I hope your day is going well and that maybe you’ve still got a thing or two or nine for which to be thankful. 🙂

Read More

Updating Atom and the WordPress Coding Standards

For those who have read my Atom and WordPress Coding Standards post, then you should have everything you need when it comes to setting up the editor to evaluate your code with the WordPress Coding Standards.

Recently, though, the 0.10.0 release of the coding standards were published on GitHub, and it brings a lot of changes.

Atom and the WordPress Coding Standards

If you’re looking to begin upgrading to this new change, there’re a few caveats that you may experience when working with Atom and the WordPress Coding Standards.

They’re easy to address, though.

Read More