Laravel VS Code Extension Now in Public Beta
Announced at Laracon US 2024, this extension is built to provide Laravel developers with a more powerful and integrated experience inside VS Code — ideal for those who prefer it over PhpStorm.
Why This Matters
This official extension offers advanced Laravel support within VS Code, including improved autocomplete, click-to-definition functionality, and real-time diagnostics — all tailored specifically for Laravel applications.
Highlights of the Extension
Here’s an overview of what the extension currently supports:
App Bindings
Autocomplete for app('auth'), App::make(), etc.
Click-through to definitions
Warnings when bindings are missing
Assets & Views
Autocomplete for asset paths and view names
Direct links to files
Suggestions to create missing Blade views
Config & .env
Smart suggestions for config() and env() keys
Hoverable tooltips with inline info
Fixes for missing values (e.g. "Add to .env")
Eloquent ORM
Method and relationship autocompletion
Field suggestions inside queries
Support for sub-queries with closures
Routes & Middleware
Autocomplete for routes and middleware
Navigation to definitions
Warnings when entries are not found
Translations
Autocomplete for __('auth.failed') and similar keys
Parameter suggestions
Alerts for missing translations
Validation
Autocomplete for array and string validation rules
Support for Validator::validate() and request()->validate()
Coming Soon
The Laravel core team has shared a few features currently in the works:
VS Code test runner integration
Livewire and Volt support
Pint formatter integration
Enhanced Blade file diagnostics and autocomplete
If you’re a Laravel developer using VS Code, this extension can greatly boost your productivity. You can download the public beta from the Visual Studio Marketplace and give it a try.