https://github.com/wesjd/vscode-touchbar-command
Run commands via a touchbar button with VSCode
https://github.com/wesjd/vscode-touchbar-command
Last synced: 9 months ago
JSON representation
Run commands via a touchbar button with VSCode
- Host: GitHub
- URL: https://github.com/wesjd/vscode-touchbar-command
- Owner: WesJD
- License: other
- Created: 2018-01-16T04:52:17.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2018-01-16T05:00:37.000Z (over 8 years ago)
- Last Synced: 2025-02-18T01:37:25.062Z (over 1 year ago)
- Language: JavaScript
- Size: 35.2 KB
- Stars: 0
- Watchers: 2
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# vscode-touchbar-command
Simple Visual Studio Code extension to allow for running a designated command when clicking a button on the macOS touchbar.
## Configuration
In your `settings.json`, put:
```json
"touchbar-command.command": "command"
```
## Building
You are able to grab a default build [here](https://github.com/WesJD/vscode-touchbar-command/releases), but beware that the touchbar button will have the text of `Execute`. Install it with step #3 below.
1. Make sure to have `vsce` installed: `npm install -g vsce`
2. Run `vsce package --baseContentUrl`
3. Run `code touchbar-command-0.0.1.vsix` (or with the file name that was just created)
## Changing the button name
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.
## License
Licensed under the [Mozilla Public License 2.0](LICENSE).