
Sublime PHP Companion makes it easy to right click on functions and go to their definitions, but this shortcut brings back PHPStorm's CMD-click-to-definition.
PLUGIN SUBLIME TEXT 3 FULL
This isn't quite the same as full userland-code-sensitive autocompletion, but it helps a lot. Sublime PHP Companion doesn't sniff your classes and give you autocompletion, sadly, but SublimeAllAutocomplete does register the names of all symbols (functions, classes, etc.) in any files you have open in other tabs and add those to the autocomplete register. But for day-to-day work, this is a huge boost in the PHP-code-knowledge area. The package isn't perfect, and it is clearly not as bright as PHPStorm is when it comes to detecting namespaces and parsing some weird edge cases.
PLUGIN SUBLIME TEXT 3 HOW TO
Learn more about how to set up PHPCompanion keymapping here. ~~They're mapped to certain keys by default, but you can always re-map them.~~ Update: there is no keymapping by default anymore. Like most packages, it contains a series of actions you can perform. The most significantly PHP-focused package for Sublime Text is called Sublime PHP Companion. Unless otherwise specified, every package after this should be installed using Package Control.
PLUGIN SUBLIME TEXT 3 INSTALL
If you haven't yet, Go install Package Control now.

We love the code intelligence we get from PHPStorm, but still miss the speed, quick boot-up, and convenience of Sublime Text.īefore I blindly assume PHPStorm is the only way to go, I wanted to see: Can I bring the things a PHP-focused IDE provides PHP developers back to Sublime Text and get the best of both worlds?

A lot of folks in the PHP community have been checking out PHPStorm lately, including myself and most of the developers I work with.
