A VSCode extension that lets you click on terminal commands in your code to execute them.
git clone git@github.com:dwalter/vscode_term_cmd_btns.git
cd vscode_term_cmd_btns
###First time
sudo apt install npm
npm install
sudo npm install vsce -g
npm run compile;
yes | vsce package;
code --install-extension terminal-command-buttons-*.vsix;
- reload vscode window with: cmd+shift+p -> Developer: Reload Window
Adds clickable commands wrapped in <terminal>
tags that execute in the VSCode terminal when clicked.
Add commands to your code like this:
"""
run with:
<terminal>python main.py --arg0 "zero"</terminal>
"""