[Insights](/insights/) / [Core Engineering Intelligence](/insights/core_engineering_intelligence/)

# 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.

![Ivan Borshchov](https://static.devforth.io/adminusers/avatars/2026/48db9847-d461-40cd-b344-f2bd7b0d98ca-avatar_ivan@devforth.io_f4ce9df9-8363-4314-9345-28753c76a386.jpeg)

Ivan Borshchov

CEO & System Architect @ DevForth

Dec 3, 2026

![Start your dev servers automatically when you open a project in VS Code](https://static.devforth.io/posts/logo-svg/2026/71edfe2e-8106-4783-85e7-9c0e269e7a27-logo-preview-new.svg)

![Start your dev servers automatically when you open a project in VS Code](https://static.devforth.io/posts/logo-svg/2026/71edfe2e-8106-4783-85e7-9c0e269e7a27-logo-preview-new.svg)

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:

```json
{
  "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.
-   `cwd` is the folder the command runs in, so you don't need `cd`.
-   `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

[

Get a quote

](/estimation-request/)[

Talk to our engineers

](https://talk.devforth.io/book/30-minute-meeting)

[

Back to insights

](/insights/)

[](https://www.linkedin.com/sharing/share-offsite/?url=https%3A%2F%2Fdevforth.io%2Finsights%2Fstart-your-dev-servers-automatically-when-you-open-a-project-in-vs-code%2F)[](https://bsky.app/intent/compose?text=Start%20your%20dev%20servers%20automatically%20when%20you%20open%20a%20project%20in%20VS%20Code%0A%0Ahttps%3A%2F%2Fdevforth.io%2Finsights%2Fstart-your-dev-servers-automatically-when-you-open-a-project-in-vs-code%2F)[](https://x.com/intent/tweet?text=Start%20your%20dev%20servers%20automatically%20when%20you%20open%20a%20project%20in%20VS%20Code%20by%20%40ivanborshchov%0A%0Ahttps%3A%2F%2Fdevforth.io%2Finsights%2Fstart-your-dev-servers-automatically-when-you-open-a-project-in-vs-code%2F)

## Related insights

[

![Fix "imported module is not a function" after moving to webpack 5](https://static.devforth.io/posts/logo-svg/2026/4ece3224-d122-4007-9291-35d22773e0f9-logo-preview-new.svg)

Core Engineering Intelligence Dec 3, 2026

## 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.

](/insights/fix-imported-module-is-not-a-function-after-moving-to-webpack-5/)[

![What to do when an open-source package is no longer maintained](https://static.devforth.io/posts/logo-svg/2026/e2463731-0f3e-49ba-95d2-adfb8e02e0aa-logo-preview-new.svg)

Core Engineering Intelligence Dec 3, 2026

## 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.

](/insights/what-to-do-when-an-open-source-package-is-no-longer-maintained/)[

![How to back up a SQL database so it actually works](https://static.devforth.io/posts/logo-svg/2026/f7a30c3e-5083-4833-9a05-3373d5de76b1-logo-preview-new.svg)

Core Engineering Intelligence Dec 3, 2026

## 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.

](/insights/how-to-back-up-a-sql-database-so-it-actually-works/)
