Modern web development generally involves running various scripts in your terminal to build assets, analyse your code and more. Thankfully it's possible to automate that process in Visual Studio Code using tasks.json file.
{"version": "2.0.0", "tasks": [{ "label": "Run Vite", "type": "shell", "command": "npm run dev", "presentation": {"reveal": "always", "panel": "new"}, "runOptions": {"runOn": "folderOpen"} }] } This task will automatically run the npm run dev command when the project folder is opened. The next time it's opened, the task panel will show up alongside your regular terminal and that process will start automatically.