ターミナル>タスクの構成>テンプレートからtasks.jsonを生成>Others を選択
tasks.jsonファイルを以下に修正1 2 3 4 5 6 7 8 9 10 11 12 13 14 15{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "Laravel Serve", "type": "shell", "command": "php artisan serve", "runOptions": { "runOn": "folderOpen" } } ] }VSCodeを閉じて、再度開くと実行されるのを確認
参考にさせていただきました。
https://supilog.supisupi.com/blog/b1e6undi9op2/