Use bracketed paste for "Run Selected Text In Active Terminal" #159153
Labels
feature-request
Request for new features or functionality
help wanted
Issues identified as good community contribution opportunities
insiders-released
Patch has been released in VS Code Insiders
terminal-input
Relating to typing in the terminal not doing the right thing, IMEs not working, etc.
verification-needed
Verification of issue is requested
verified
Verification succeeded
Milestone
The "Run Selected Text In Active Terminal" function (especially with a key binding) is invaluable for quickly testing snippets in bash scripts. Unfortunately, the input is interpreted by the interactive terminal when tabs are used for indentation:
Running this snippet leaves the terminal like this:
For most terminals, setting
set enable-bracketed-paste on
in the.inputrc
or runningbind 'set enable-bracketed-paste on'
skips the terminal handling for pasted text (see bracketed paste).The integrated terminal should use bracketed paste (and set this option) by default.
Currently, it can be circumvented by running
bind 'set disable-completion on'
, but then I would have to enable it manually again before using the terminal interactively.The text was updated successfully, but these errors were encountered: