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. 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. 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. Let's start with a quick list of ways that PHPStorm really sets itself apart for me. 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? You can now select any package you wish to remove.A lot of folks in the PHP community have been checking out PHPStorm lately, including myself and most of the developers I work with. To remove a Sublime package, open the command palette and then type in "remove", press down to select "Package Control: Remove Package" and hit enter. Sublime will check for new versions and install them. Open the command palette and then type in "upgrade" and hit enter when you see "Package Control: Upgrade Package". If there is a new version of a package you can upgrade it through Sublime. To show what packages you have installed open the command palette by typing CMD+ SHIFT+ P ( CTRL+ SHIFT+ P on Windows) and then type in "list" and hit enter when you see "Package Control: List Packages". You may need to quit Sublime Text and open it again for newly installed packages to begin working. That's it! you have just installed a package. Here you can type whatever package you wish to install and select the correct one from the list. Now open up the command palette again using the aforementioned keyboard shortcut and type "install", hit enter when you see the option "Package Control: Install Package" option appear. Open the command palette by typing CMD+ SHIFT+ P ( CTRL+ SHIFT+ P on Windows) and then type "install", hit enter when you see "Install Package Control". You can do this through sublime using the command palette. To begin you will need to install Package Control, which is a package manager for Sublime. But how do I install packages on Sublime? It is very simple and in this quick article, I'll explain the steps needed to have you installing packages to your heart's content in no time. Sublime Text is a great text editor for programming because of its huge array of built-in features and third-party packages to add functionality.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |