Start your dev servers automatically when you open a project in VS Code
A small .vscode/tasks.json that starts your frontend, backend and other dev commands in split terminals as soon as the project folder opens.
Every morning goes the same way. Open the project, open a terminal, cd frontend, npm run dev, open another terminal, cd backend, start that one too. It's small and boring, and you do it every day. Let VS Code do it for you.
Create .vscode/tasks.json in the project:
{
"version": "2.0.0",
"tasks": [
{
"label": "frontend",
"type": "shell",
"command": "npm run dev",
"options": { "cwd": "${workspaceFolder}/frontend" },
"presentation": { "panel": "new", "group": "dev" },
"runOptions": { "runOn": "folderOpen" }
},
{
"label": "backend",
"type": "shell",
"command": "npm run dev",
"options": { "cwd": "${workspaceFolder}/backend" },
"presentation": { "panel": "new", "group": "dev" },
"runOptions": { "runOn": "folderOpen" }
}
]
}
What each piece does:
- Each task is one command running in its own terminal.
cwdis the folder the command runs in, so you don't needcd.group: "dev"places the terminals side by side in one split panel.runOn: "folderOpen"starts the task when you open the folder.
The first time, VS Code asks whether to allow automatic tasks. Choose Allow. You can change this later with the "Tasks: Manage Automatic Tasks" command. Automatic tasks never run in a workspace you haven't marked as trusted, which is a good safety net for code you just cloned.
Need a third command, like a queue worker or a database in Docker? Copy one task and change the label, command and folder.
Commit the file, and everyone on the team gets the same zero-click start.
In short: put your start commands in .vscode/tasks.json and add runOn: "folderOpen" to each one.
Get your project quote
Free result within 48-72 hours
Related insights
Fix "imported module is not a function" after moving to webpack 5
Why a library's default import breaks with "is not a function" after a webpack 5 build, and the small config fix for library authors.
What to do when an open-source package is no longer maintained
A short checklist for an abandoned npm or pip dependency. Confirm it's abandoned, find a maintained fork, check the license and switch safely.
How to back up a SQL database so it actually works
A simple backup routine for PostgreSQL and MySQL. Dump the data, copy it off the server, run it on a schedule and check that you can restore.