Skip to content

Bun setup

Here are the steps to set up Bun in VS Code with mise:

  1. Install the mise-vscode extension (if not already installed)
  2. Install the Bun extension for VS Code
  3. Open a project with a mise.toml file (or any other files supported by mise)

If your project has a mise.toml file, such as the one below:

[tools]
bun = "latest"

mise-vscode will automatically detect it and set deno.path in your workspace settings.

Bun setup

If you want to quickly initialize a Deno project, you can use the following commands:

  1. mkdir my-bun-project && cd my-bun-project
  2. mise use bun@latest
  3. bun init . -y

This will create a new Bun project with a mise.toml file that specifies the latest version of Bun. Open the index.ts file in VSCode and click the run button, you should be all set!