Skip to content

Instantly share code, notes, and snippets.

@danthemango
Created August 31, 2023 17:55
Show Gist options
  • Save danthemango/ee819f3a5316428435559749706c8176 to your computer and use it in GitHub Desktop.
Save danthemango/ee819f3a5316428435559749706c8176 to your computer and use it in GitHub Desktop.
VS Code, run previous terminal command
// this adds a command to re-run the previous bash command
// asuming you git-bash or another bash terminal open inside of vscode
// update the keybindings json array as follows
[
{
"key": "shift+enter",
"command": "workbench.action.terminal.sendSequence",
"args": {
"text": "!!\r"
}
}
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment