Skip to main content
[2020-10-08]

PhpStorm trick: keyboard shortcut to expand your tool window

#phpstorm

I accidentally found a cool keyboard shortcut for PhpStorm, and probably every IntelliJ IDE. On macOS, you can use Shift + CMD + Apostrophe to force your tool window to expand to the entire screen. I'm assuming for Linux and Windows this is Shift + CTRL + Apostrophe. I don't know about anyone else, BUT I AM VERY EXCITED.

[2020-06-04]

Boost your test writing productivity with PHPUnit for PhpStorm

#phpstorm #phpunit #drupal

I write a lot of tests for all of my Drupal code. I try to live by Test Driven Development. It delivers cleaner code. It helps define your architecture without full implementation details. I also despise clicking and manually testing things.

[2018-12-12]

PhpStorm protected branches feature

#phpstorm #git

Recently, while working on a little project, I decided to clean up some of the commits on the master branch before pushing it to Packagist. To be lazy, I decided to use PhpStorm's interactive rebase tool instead of the good ole command line.

BUT I COULD NOT! And I started to go mad.

[2018-10-10]

OK PhpStorm, what methods does my entity have?

#drupal #phpstorm

Working in object-oriented programming is great. You can define interfaces which specify a contract that implementers need to fulfill. You can then extend these to define your end requirement and provide the implementation. This also means you can guarantee an object that implements that interface will have a guaranteed set of known methods.

[2018-10-06]

Test driven development in PhpStorm with auto-testing enabled

#phpunit #testing #test-driven development #phpstorm #drupal

When I work, I try to follow the principles of Test-Driven Development. I have found it to aid me in writing cleaner code, identifying odd coupling of components or crazy accidental dependencies between components. It also lets me write my API first by using mocks against interfaces I have defined.