Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Touch Bar CLI CommandsNew to Visual Studio Code? Get it now.
Touch Bar CLI Commands

Touch Bar CLI Commands

jjlundberg

|
713 installs
| (1) | Free
Execute any cli command from your Touch Bar
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Touch Bar CLI Commands

This extension allows for 4 MacBook TouchBar icons (✎1-✎4) that each execute a CLI command of choice in VSCodes integrated terminal.

Touch Bar Screenshot

Features

The extension can be customized within VSCodes settings.

Custom commands

Type desired command

Command

Enable / disable buttons

Each button can be hidden when not desired.

Enable

Force new terminal window

Each command can forced to be run in a new terminal window (disabled by default). A new terminal window will also be created if none exist.

Force

Accessability

The commands are also available from the command palette (Cmd+Shift+P) and kan be bound to shortcuts, like

  "key": "cmd+shift+1",
  "command": "touch-bar-commands.execute.cmd1"

to bind command 1.

Extension Settings

This extension contributes the following settings:

  • touch-bar-commands.enable.cmdX: enable/disable command X
  • touch-bar-commands.force.cmdX: force command X to be executed in a new terminal window
  • touch-bar-commands.command.X: Command X that is executed

Where X is the number of the command (1-4).

Known Issues

  • The extension cannot dynamically edit the text of the TouchBar icon text due to VSCode limitations.

Release Notes

1.1.0

  • Change display name to 'Touch Bar CLI Commands' to avoid confusion
  • Minor README update
  • Bump vscode engine to 1.48

1.0.0

  • Initial release
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft