Skip to content
当前有符合你浏览器所设置语言的版本,是否前往zh-CN版本的网站?
There is a version suitable for your browser's language settings. Would you like to go to the zh-CN language of the site?
HomeDocument

VS Code Menu Bar

H1

The menu bar in VS Code for Milkio is customizable, and expanding the menu bar is a simple task.

Configuration

To add menu items and customize the scripts to be executed, edit your /milkio.toml file.

[menubar]
commands = [
{ name = 'Say Hello', script = 'echo Hello Milkio' },
{ name = 'Test All APIs', script = 'bun run ./index.ts --run-mode:API_TEST' },
]

The scripts are executed using Bun’s $ Shell. Bun provides an independent shell implementation, which means your scripts can be executed across platforms. They will work fine on Windows as well.