Home > Development Tools > VSCode > body text

8 Awesome Laravel Development Extensions for VSCode

青灯夜游
Release: 2022-12-27 20:08:44
forward
2804 people have browsed it

This article is a list of the top 8 VSCode extensions for Laravel developers, which will help you improve your work efficiency!

8 Awesome Laravel Development Extensions for VSCode

1. Laravel Blade Snippet

Laravel Blade Snippet The extension adds syntax for Laravel Blade to your VS Code editor Highlighting support. [Recommended learning: vscode tutorial, Programming teaching]

Some of the main functions of this extension are:

  • Blade syntax highlighting
  • Blade Snippets
  • Emmet works in Blade templates
  • Blade Format

Some additional configuration is required to ensure that the extension works as expected. In File -> Preferences -> Settings and add the following to your settings.json:

"emmet.triggerExpansionOnTab": true,"blade.format.enable": true,"[blade]": {
    "editor.autoClosingBrackets": "always"},
Copy after login

This will enable tab completion for Emmet tags if the blade formatting is enabled.

For more information on the available Snippets, be sure to check out the documentation:

VSCode extension for laravel

2. Laravel Snippets

This is probably my personal favorite! This Laravel Snippets extension adds code snippets to the appearance of Request::, Route:: etc.

Some supported fragment prefixes include:

  • Authentication
  • Broadcast
  • Cache
  • Configuration
  • Console
  • Cookie
  • Encryption
  • Database
  • Events
  • View

About available fragments For more information, be sure to check out the documentation here:

Larave's VSCode Extension

3. Laravel Blade Snippet

When you try to Isn't it annoying when you use {{ }} in a Blade view and your entire line returns 4 spaces? Well, luckily, this Laravel Blade Snippet solves that problem!

The Laravel blade fragment extension automatically adds spacing to your blade template tags:

For more information, be sure to check out the documentation here:

laravel VSCode Extension

4. Laravel Artisan

I personally always prefer using the command line, but I must admit this Laravel Artisan extension is awesome! It allows you to run Laravel Artisan commands directly from Visual Studio Code!

The main functions of Some are:

  • Create controller, migration and other files.
  • Run your own custom commands
  • Manage your database
  • Clear cache
  • Generate keys
  • View all applications Routing
  • Manage your local php server for testing purposes

For more information, be sure to check out the documentation here:

VSCode for laravel Extension

5. Laravel Extra IntelliSense

ThisLaravel Extra IntelliSense extension provides auto-completion for Laravel in VSCode.

This extension has the following autocomplete features:

  • Route Name and Route Parameters
  • Views and Variables
  • Configuration
  • Translating and Converting Parameters
  • Laravel Mix Functions
  • Validation Rules
  • View Sections and Stacks
  • Environment
  • Route Middleware

For more information, be sure to check out the documentation here:

VSCode Extension for laravel

6. Laravel Goto Controller

As the application grows, the number of controllers also grows, so at some point, you may end up with hundreds of controllers. Hans's wayfinding can be tedious.

This is exactly the problem Laravel-goto-controller VScode extension solves.

This extension allows you to press Alt and click on a controller name in a route file, and it will guide you from the route to the corresponding controller file:

For more updates For more information, please view the documentation:

VSCode extensions for laravel

7. Laravel goto View

is very similar to the Laravel goto Controller extension extension, Laravel goto View VScode extension Allows you to go to View files from Controller or Route. This can save you a lot of time!

You can click to jump to the first matching Blade view file using Ctrl or Alt:

For more information, be sure to Check out the documentation here:

Laravel's VSCode extension

8. DotENV syntax highlighting

This is very simple, but very convenient. This DotENV VS Code extension is used to highlight the syntax of .env files, which is very handy for finding some issues.

For more information, be sure to check this Documentation at:

VSCode Extensions for laravel

Conclusion

If you like all these extensions, you can check out for Visual Studio Code's Laravel Extension Pack where you can get all the mentioned extensions as 1 bundle

The only extension not included in the package is the Laravel Blade snippet, so make sure to install it separately!

I hope this is useful to you!

Original address: https://devdojo.com/bobbyiliev/8-awesome-vs-code-extensions-for-laravel-developers

Translation address: https:// learnku.com/laravel/t/71392

[Related recommendations: laravel video tutorial]

The above is the detailed content of 8 Awesome Laravel Development Extensions for VSCode. For more information, please follow other related articles on the PHP Chinese website!

Related labels:
source:learnku.com
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template