-
Notifications
You must be signed in to change notification settings - Fork 29.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Support copy and paste via keyboard on integrated terminal #6451
Comments
Probably best left for after xterm is adopted. |
Upstream issue blocking configurable copy/paste: xtermjs/xterm.js#118 xterm.js did recently add ctrl+insert to copy and shift+insert to paste in xtermjs/xterm.js#107, so this will be the 'workaround' until xtermjs/xterm.js#118 gets done. |
I'm also facing Issues with I'd rather remove the shortcut indicator in the right-button-menu for copy/paste/cut to avoid misunderstandings. |
Basic support is there for v1.3.0 using:
This will be improved in the future with the ability to specify your preference in keybindings.json. |
A very good idea |
@bldesign @andregsilv nice suggestion, forked to #8818 to be considered after this. |
Proper keybinding support coming in v1.4.0! Certain key combinations won't work as the terminal will consume them before VS Code has a chance to respond. This is being tracked in #7269 |
Reopening as these keybindings should be disabled on Mac since cmd+c and cmd+v work there. |
unfortunately ctrl+insert/shift+insert is not the ideal way to have shortcuts on windows. Macbooks don't have insert key. |
@alexsorokoletov cmd+c and cmd+v should work on Mac. |
@Tyriar hardware is mac, however the OS is Windows 10. Sorry for the confusion |
@alexsorokoletov ah, I guess you have to wait until next release then or use the Insiders build for ctrl+shift+c/v. |
So, it has been implemented, although I cannot seem to change the shortcut. I tried switching it to ctrl+c/ctrl+v without luck. All other custom keybindings work fine. |
@superDuperCyberTechno you can change the keybinding, but you can only change it to certain combinations as the key strokes at handled by the terminal before vscode itself. This is the reason F1 and ctrl+p do no work but ctrl+shift+p works fine. The "fix" for this would be to address #7269 (comment) |
Alright, thank you for the explanation. Makes sense that ctrl+c is bound to the cancel action in the console (bash, at least). I'll just stick to the default keybinding for now, then... |
@superDuperCyberTechno I just pushed a fix for #7269 which will landin Insiders tomorrow (or v1.5.0 stable) to allow a set of commands to skip over the shell processing and be handled by VS Code. This means that you can indeed rebind to ctrl+c and ctrl+v if you want, you will not be able to use ctrl+c to cancel the command anymore though and you cannot remap that (outside of maybe remapping in bash if that's possible). Conditional ctrl+c/v if probably what you really want, this is still open and captured in #8818 |
Integrated terminal master issue: #143
Might need to use custom keybindings, ctrl+c terminates a process. Also it's probably not best to hijack ctrl+shift+c from open in new terminal.
The text was updated successfully, but these errors were encountered: