Simple Visual Studio Code extension to allow for running a designated command when clicking a button on the macOS touchbar.
In your settings.json
, put:
"touchbar-command.command": "command"
You are able to grab a default build here, but beware that the touchbar button will have the text of Execute
. Install it with step #3 below.
- Make sure to have
vsce
installed:npm install -g vsce
- Run
vsce package --baseContentUrl
- Run
code touchbar-command-0.0.1.vsix
(or with the file name that was just created)
Unfortunately, from what I have found you are unable to have the user define the a command's title name. Therefore, to change the
buttom name, you will need to edit the command touchbar-command.click
to have the title
property of your choice.
Licensed under the Mozilla Public License 2.0.