News

Run Artisan Make Commands in Laravel VS Code Extension

Published
Run Artisan Make Commands in Laravel VS Code Extension image

The Laravel VS Code extension was recently updated with an incredible new feature: run artisan make: commands from the command palette. You can run commands, select flags and options, all without leaving your editor:

Using make:controller from the command palette
Using make:controller from the command palette

Once you type in the name of the controller in this example, you can fuzzy-search for all the available command options, select them, and create your file(s) with your keyboard:

The make:controller command options
The make:controller command options

Along with the command palette, you can contextually use make: commands from the project tree by right-clicking and selecting the desired file type. Depending on which folder in the project, you can contextually create things using make:* commands for controllers, models, queues, jobs, events, etc.

Contextually running make:controller from the file tree
Contextually running make:controller from the file tree

You can get the official Laravel VS Code extension in the marketplace or search for it within the VS Code Extensions sidebar. This feature is available as of v1.4.0.

Paul Redmond photo

Staff writer at Laravel News. Full stack web developer and author.

Filed in

Sponsored

masteringlaravel logo
Laravel Code Review

Get expert guidance in a few days with a Laravel code review

Visit Laravel Code Review

The latest

View all →
Laravel Image Responses: Serve Resized Images From Routes image

Laravel Image Responses: Serve Resized Images From Routes

Read article
Pause All Laravel Queues During a Deploy image

Pause All Laravel Queues During a Deploy

Read article
Laravel Terminal UI for the artisan dev Command image

Laravel Terminal UI for the artisan dev Command

Read article
Pause All Queues and a New artisan dev UI in Laravel 13.25 image

Pause All Queues and a New artisan dev UI in Laravel 13.25

Read article
Laravel monitoring that doesn't bill you by your traffic image

Laravel monitoring that doesn't bill you by your traffic

Read article
Mock PHP Classes in Tests With the Double Library image

Mock PHP Classes in Tests With the Double Library

Read article