VS Code Send snippet to Terminal
Send code snippet to Terminal by automatically expanding the code block to cover the multiline command.
This extension expands code block automatically before sending it to Terminal. It works both with Bash and with PowerShell.
Example multiline command in Bash:
Example multiline command in PowerShell:
Now if you execute
To enable this command with handy keyboard shortcut like e.g.,
Note: You need to then search with that shortcut to remove other shortcuts that might overlap with your selection.
Add support for opening Terminal, if not already open.