11/7/2023 0 Comments Sublime text theme phpstorm![]() This is what I used for ST3 and it works way better in ST4 because of the new context-aware code-completion. SublimeLinter-phpcs, lint code style problems.SublimeLinter-contrib-tlint, support for tighten/tlint.PHPUnitKit, run your PHPUnit tests in Sublime Texts console.PHP Completions Kit, provides PHP completions for Sublime Text.PHP Companion, essential for PHP development.Laravel Blade Spacer, automatically adds spaces to Laravel Blade syntax for readability.Laravel Blade Highlighter, add syntax for Laravel Blade templates.Emmet, generate HTML plus tools to work with HTML (like wrap selection with tag).ChangeQuotes, change from double to single quotes or vice-versa.AdvancedNewFile, better creation of new files and renaming.AceJump, quickly move the cursor to a specific position.A File Icon, pretty icons for your files.You should also make sure the CLI is available for both tools, so that you can run subl or smerge in a terminal. getting the history or blame for the current file). If you haven't done so already, you should also install Sublime Merge, it works really nice in concert with Sublime Text (i.e. If you want to start fresh, just create an empty config directory. It will copy the existing config to the new location at ~/Library/Application Support/Sublime Text or ~/.config/sublime-text respectively. ST4 will detect existing ST3 configuration files in ~/Library/Application Support/Sublime Text 3 (Mac) or ~/.config/sublime-text-3 (Linux). My setup for Laravel Development Installation / Upgrade I've heard great things about Psalm, but haven't tried it with ST4, yet. Especially tlint has great linting for code quality (like unused imports). ![]() Lintingįor linting I use phpcs and tlint by Tighten. I do use the Tailwind plugin to get all the Tailwind classes. I'm not sure how autocomplete works without a language server, but the default in ST4 is already so good, that I haven't bothered with installing Intelliphense of Psalm, yet. No extra shortcut, I just use the command palette ( cmd+shift+p). When implementing an interface or an abstract class, there's also the option to import all methods that need to be implemented. When using PHP classes, I press F10 to import the fully qualified classname as a use statement at the top of the file (automatically sorted). Pressing ctrl+e converts this text to a proper test method that I just need to fill with life. In that test-file I just type verbatim text of what I want to test (i.e. I practice TDD whenever it makes sense, so the first thing is usually do is generate a functional test. How I use Sublime Text for Laravel Developmentīefore I go into the details of how I set ST up exactly, I want to write a little about how I use it and its features on a daily basis. ![]() ![]() Other than that you will see the same level of code completion capabilities and a way snappier editor. If you're good with what Intelliphense has to offer plus niceties like automatically adding use statements or expanding FQCNs, Sublime Text is for you.įor VSCode users the only downside seems to be that ST4 is not free. If you're a full-blown IDE person and cannot live without all those nice refactoring features in your day to day work, you're probably going to stay with PHPStorm. To see the features illustrated, check out this overview video.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |