20/08/2024
Best extension for php and laravel development in visual studio code
Intelephense
This is the most important extension to install for PHP support. It provides a fast language server that adds code completion, go-to definition, formatting, and more.
Laravel Extra Intellisense
The “VS Code Laravel Extra Intellisense” extension enhances the development experience for Laravel developers using Visual Studio Code. It integrates seamlessly with the code editor, providing intelligent suggestions and autocompletion specific to Laravel syntax. This extension proves invaluable for streamlining coding tasks, reducing errors, and boosting overall productivity in Laravel projects.
Laravel blade snippets
The Laravel Blade snippets extension adds syntax highlight support for Laravel Blade to your VS Code editor. Besides, it offers blade snippets and blade syntax highlights support for VSCode. Furthermore, it also consists of a set of triggers that, when typed, give the respective blade snippets. This also makes your blade templating easier and faster.
Laravel Snippets
Another one in the list of VS Code Laravel Extensions is the Laravel Snippets extension. It adds snippets for the Facades like Request::, Route:: etc. Besides, this package also gives Laravel snippets to use in VSCode when building our applications. Instead of typing out longer Laravel commands, you just use prefixes like: Auth, Cache, Config, Route, Mail, View etc.
DotENV
The DotENV VS Code extension is used to highlight the syntax of your .env file, which could be quite handy for spotting some problems.
Laravel Artisan
The Laravel Artisan extension makes running artisan commands a breeze when using Laravel. To use it, you just need to trigger the VSCode command palette by pressing Ctrl+Shift+P and then typing Artisan and the artisan commands will show up to be executed.
Laravel Goto View
The Laravel Go to View VScode extension allows you to go from your Controller or Route to your view. You can use Ctrl + Alt + Click to jump to the first matched Blade View file. It works similarly to the Laravel goto Controller extension.
Laravel-goto-controller
Laravel-goto-controller VScode extension allows you to press Alt+click on the name of the controller in your routes file, and it will navigate you from the route to the respective controller file.
Prettier
Prettier is an opinionated framework for formatting JavaScript/TypeScript files. It is highly recommended for formatting React and Vue files if using something like Inertia. It can also format other file types, like JSON and Markdown
Laravel Blade Formatter
Blade-formatter is an opinionated Blade file formatter for VSCode. You can also format by the same syntax programmatically with the blade-formatter that this extension relies on
Laravel IDE Helper
This plugin helps generate helper files for better code suggestions for Laravel
GitHub Copilot
It provides autocomplete-style suggestions from an AI pair programmer as you code. Just start writing your code in the editor and Copilot provides you with relevant suggestions. Need something specific? Add a natural language code comment to give directions to Copilot about what you want.
IntelliPHP
It is an AI-powered extension for Visual Studio Code that enhances productivity and code development experience for PHP.