/bolt.new-ai-integrations

Bolt.new AI and Visual Studio Code integration: Step-by-Step Guide 2025

Discover how to seamlessly integrate Bolt.new AI with Visual Studio Code. Our step-by-step guide boosts coding efficiency and streamlines your workflow.

Matt Graham, CEO of Rapid Developers

Book a call with an Expert

Starting a new venture? Need to upgrade your web app? RapidDev builds application with your growth in mind.

Book a free No-Code consultation

How to integrate Bolt.new AI with Visual Studio Code?

 

Setting Up Your Project Files

  Create the following files in your Bolt.new AI project to enable Visual Studio Code integration. You will create a package.json file, a tsconfig.json file for TypeScript compilation, a main source file (index.ts), and two VS Code configuration files (launch.json and tasks.json) inside a .vscode folder.
  • Create a file named package.json in the project root. This file will list your project’s metadata, scripts, and dependencies. Since Bolt.new AI does not have a terminal, include the installation instructions for TypeScript as a dependency via this file.

{
  "name": "bolt-ai-vscode-integration",
  "version": "1.0.0",
  "scripts": {
    "start": "tsc && node dist/index.js"
  },
  "dependencies": {
    // Add any runtime dependencies here if needed
  },
  "devDependencies": {
    "typescript": "^4.5.0"
  }
}
  • Create a file named tsconfig.json in the project root. This file instructs the TypeScript compiler how to transpile your code.

{
  "compilerOptions": {
    "target": "ES6",
    "module": "commonjs",
    "moduleResolution": "node",
    "outDir": "./dist",
    "rootDir": "./src",
    "strict": true
  },
  "include": ["src/*/"]
}
  • Create a folder named src. Inside the src folder, create a file named index.ts. This file contains your main TypeScript code that demonstrates Visual Studio Code integration.

import * as vscode from 'vscode';

/**
- This function is the entry point when your integration module is activated.
 */
export function activate(context: vscode.ExtensionContext) {
  console.log('Bolt.new AI project integrated with Visual Studio Code!');
  
  // Register a simple command to test the integration.
  let disposable = vscode.commands.registerCommand('extension.sayHello', () => {
    vscode.window.showInformationMessage('Hello from Bolt.new AI integration!');
  });
  
  // Add to a list of disposables which are disposed when this extension is deactivated.
  context.subscriptions.push(disposable);
}

/**
- This method is called when the extension is deactivated.
 */
export function deactivate() {}
  • Inside your project root, create a folder named .vscode. In this folder, create two files: launch.json and tasks.json. These files will configure VS Code’s debugging and task running features.

 

Configuring VS Code Debugging

 
  • Open the .vscode/launch.json file and insert the following configuration. This configuration tells VS Code how to launch and debug your TypeScript application.

{
  "version": "0.2.0",
  "configurations": [
    {
      "type": "node",
      "request": "launch",
      "name": "Launch Program",
      "preLaunchTask": "tsc: build - tsconfig.json",
      "program": "${workspaceFolder}/dist/index.js",
      "outFiles": ["${workspaceFolder}/dist/*/.js"]
    }
  ]
}

 

Setting Up the Task Runner

 
  • In the .vscode/tasks.json file, insert the following task configuration. This allows VS Code to compile your TypeScript files before launching the debug session.

{
  "version": "2.0.0",
  "tasks": [
    {
      "type": "typescript",
      "tsconfig": "tsconfig.json",
      "problemMatcher": [
        "$tsc"
      ],
      "group": "build",
      "label": "tsc: build - tsconfig.json"
    }
  ]
}

 

Understanding the Integration

 
  • The package.json file declares a script that first runs the TypeScript compiler (tsc) and then runs your compiled JavaScript from the dist folder.
  • The tsconfig.json file tells the compiler to transpile code from the src folder to the dist folder.
  • The index.ts in src is your main code file that includes a sample command integrated with VS Code. This code is structured like a VS Code extension, though you can adapt it to your specific use case.
  • The VS Code configuration files (launch.json and tasks.json) ensure you can build and debug your project directly from VS Code without using a separate terminal.

 

Running and Debugging Your Project

 
  • After saving all the files, open your project in Visual Studio Code.
  • Use the VS Code task runner to compile by triggering the build task (commonly through the command palette with "Run Task" and selecting tsc: build - tsconfig.json).
  • Launch the debugging session by selecting the "Launch Program" configuration from the Run and Debug panel. Visual Studio Code will compile your TypeScript code and start your project.
  • You should see the console log message and be able to execute the registered command to verify the integration.

Want to explore opportunities to work with us?

Connect with our team to unlock the full potential of no-code solutions with a no-commitment consultation!

Book a Free Consultation

Client trust and success are our top priorities

When it comes to serving you, we sweat the little things. That’s why our work makes a big impact.

Rapid Dev was an exceptional project management organization and the best development collaborators I've had the pleasure of working with. They do complex work on extremely fast timelines and effectively manage the testing and pre-launch process to deliver the best possible product. I'm extremely impressed with their execution ability.

CPO, Praction - Arkady Sokolov

May 2, 2023

Working with Matt was comparable to having another co-founder on the team, but without the commitment or cost. He has a strategic mindset and willing to change the scope of the project in real time based on the needs of the client. A true strategic thought partner!

Co-Founder, Arc - Donald Muir

Dec 27, 2022

Rapid Dev are 10/10, excellent communicators - the best I've ever encountered in the tech dev space. They always go the extra mile, they genuinely care, they respond quickly, they're flexible, adaptable and their enthusiasm is amazing.

Co-CEO, Grantify - Mat Westergreen-Thorne

Oct 15, 2022

Rapid Dev is an excellent developer for no-code and low-code solutions.
We’ve had great success since launching the platform in November 2023. In a few months, we’ve gained over 1,000 new active users. We’ve also secured several dozen bookings on the platform and seen about 70% new user month-over-month growth since the launch.

Co-Founder, Church Real Estate Marketplace - Emmanuel Brown

May 1, 2024 

Matt’s dedication to executing our vision and his commitment to the project deadline were impressive. 
This was such a specific project, and Matt really delivered. We worked with a really fast turnaround, and he always delivered. The site was a perfect prop for us!

Production Manager, Media Production Company - Samantha Fekete

Sep 23, 2022