![]() ![]() 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. goto_definition_scope ( shift+F12) - Same as Sublime Text's native goto_definition (described below), but scoped in a PHP-aware manner.import_namespace ( F8) - Adds the namespace for the current file based on the file's path. ![]() expand_fqcn ( F9) - Same as find_use but instead of expanding the class in the import block, it expands its FQCN inline.find_use ( F10) - When your cursor is over a class name, this command makes it simple to use (import) that class.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. If you haven't yet, Go install Package Control now.
0 Comments
Leave a Reply. |