Bun setup
Here are the steps to set up Bun in VS Code with mise:
- Install the mise-vscode extension (if not already installed)
- Install the Bun extension for VS Code
- 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.
If you want to quickly initialize a Deno project, you can use the following commands:
-
mkdir my-bun-project && cd my-bun-project
-
mise use bun@latest
-
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 VS Code and click the run
button, you should be all set!