Four Wonderful VSCode Extensions for Laravel

visual studio code and laravel

If you’re a Laravel developer and you’re not using these following Visual Studio Code extensions, I highly suggest you start using them. What developer doesn’t want to boost their productivity by installing four free extensions? Let’s get into it…

LARAVEL GOTO VIEW/CONTROLLER

I’m already cheating here as this section contains two extensions. However, you wouldn’t be getting your times worth if I were to make two sections out of these. They practically do the same thing. The first extension I’d like to mention is called “Laravel goto view” by codingyu. (Click on the link to visit his or her GitHub profile). The other one is called “laravel-goto-controller” by stef-k. There are a few extensions on the VSCode market for Laravel that do the same thing but these are the ones I use and they work great. They do exactly as their names suggest. While hovering over the view you want to visit, simply hold down CTRL and left click on the view. See below.

Just like that. Not only are you a coding wizard but a teleportation wizard too. You can do the exact same thing with controllers but with the other extension:

LARAVEL DOCS

This may be my favourite one. Gone are the days where you use a search engine to look up something specific in the Laravel documentation. You have your own built-in search engine for VSCode! . For super speed, hold down CTRL and press p to bring up the search feature in VSCode. Then, start typing in the ‘laravel’ keyword and anything you could ever want from the Laravel docs is now one click away. Check out this beaut by Austen Cameron. Excuse my slow wifi:

LARAVEL BLADE SPACER

This is the only auto-completion extension I wanted to include on the list as I know the majority of you developers probably already have these types of extensions. I had to include this one though as manually typing in double moustache syntax (or whatever you call it) is finicky as hell. This add-on by Austen Cameron (yep him again) removes that brief stress of getting your fingers tangled up on the keyboard while trying to echo or import something. Take a look:

The following is without using this extension:

LARAVEL HELPERS

Finally, we have “Laravel Helpers” by rafa-acioly. This add-on is especially useful if you’re just learning Laravel, as just like Laravel Docs, it saves you from having to enter your browser and typing something in. Simply type the function you want to use and a brief description about what the function does will pop up. It is brief and it may not explain everything you want to know about it but it’s helpful nonetheless. Have a gander:

HONORABLE MENTIONS:

LARAVEL BLADE SNIPPETS

This may not even be worth mentioning as it’s so popular and necessary that I forgot it was even an extension. I downloaded it when I first started learning Laravel with Brad Traversy’s “Laravel From Scratch” series. It pretty much provides syntax highlighting and auto-completion for Laravel Blade syntax. A must have. Though, I’d wager that most people reading this post already have this installed. Hence, why I left it out of the main list. The publisher’s name is Winnie Lin.

LARAVEL ARTISAN

A cool extension but I can’t stomach leaving the command line to use this instead. Even though it would be a fraction quicker. With “Laravel Artisan” by Ryan Naddy, you can enter Artisan commands through VSCode’s search bar. Pretty neat.

3 thoughts on “Four Wonderful VSCode Extensions for Laravel”

  1. Here are my:
    1. Laravel Extension Pack (installs the following extensions)
    – Laravel Blade Snippets
    – Laravel 5 Snippets
    – Laravel Artisan
    – Laravel goto view
    – DotENV

    This ones are extra:
    2. laravel-goto-controller
    3. Laravel Helpers
    4. phpdoc-comment-vscode-plugin

    And last but not least, one of the most important:
    5. PHP Intelephense

    This last one helps a lot with importing classes and the right spaces.

    Honorable mention:
    6. Settings Sync

    This one is a breeze when you want to have the same extensions across all the dev machines.
    You will need a Github account and after that you can upload your settings, extensions and so on in there and download it from any other machine.

    1. Thanks for making the first comment on the blog Joao Alves! Also, thanks for your list. Settings Sync is by far the most important although not Laravel exclusive. I may add DotENV to the honourable mentions too.

  2. I would also add “ikappas.phpcs” for any php project to keep the code clean along with phpcs installed globally via composer. Add this to your settings.json and you’re good to go:
    “phpcs.standard”: “PSR2”,

Leave a Reply

Your email address will not be published. Required fields are marked *