![]() Let's start with a quick list of ways that PHPStorm really sets itself apart for me. Please note: There are a million other features that PHPStorm uniquely offers, but to be honest, it's the tiny little conveniences that I've seen provide the biggest boost in efficiency.Īlso note: This is Sublime Text 3 we're talking about. Easily navigate to a symbol's definitionīefore we talk about anything else, you at least need to know how to install packages in Sublime Text.Without most of these wonderful PHP-focused features, it'll be hard to recommend using something other than PHPStorm, even if it's slower and costlier and uses more memory. If you haven't yet, Go install Package Control now. Unless otherwise specified, every package after this should be installed using Package Control. The most significantly PHP-focused package for Sublime Text is called Sublime PHP Companion. Like most packages, it contains a series of actions you can perform. ~~They're mapped to certain keys by default, but you can always re-map them.~~ Update: there is no keymapping by default anymore. Learn more about how to set up PHPCompanion keymapping here. find_use ( F10) - When your cursor is over a class name, this command makes it simple to use (import) that class. ![]() expand_fqcn ( F9) - Same as find_use but instead of expanding the class in the import block, it expands its FQCN inline.import_namespace ( F8) - Adds the namespace for the current file based on the file's path.goto_definition_scope ( shift+F12) - Same as Sublime Text's native goto_definition (described below), but scoped in a PHP-aware manner.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. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |