Created
December 21, 2020 12:15
-
-
Save exceedsystem/08565f2d7287668271c54d3d4bf31d88 to your computer and use it in GitHub Desktop.
An example of 'Bash launcher' macro for VSCodeMacros extension
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| // [VSCode Macros] extension | |
| // https://marketplace.visualstudio.com/items?itemName=EXCEEDSYSTEM.vscode-macros | |
| const vscode = require('vscode'); | |
| /** | |
| * Macro configuration | |
| */ | |
| module.exports.macroCommands = { | |
| LaunchBash: { | |
| no: 1, | |
| func: launchBash | |
| }, | |
| }; | |
| /** | |
| * Launch the Git Bash | |
| */ | |
| function launchBash() { | |
| vscode.window.createTerminal( | |
| 'Git Bash', | |
| 'C:/Program Files/Git/bin/bash.exe' | |
| ).show(); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment