Windows build number: 1903 for cmd
Windows Terminal version (if applicable): latest from the Microsoft store
Any other software? N/A
Copy any text using keyboard shortcut ctrl + C and try to paste it using ctrl + V shortcut.
This should paste the copied text in the command line.
After typing Ctrl + V only ^v is showing.
Do you have keybindings for copy and paste set in your profiles.json?
Also, please refer to the user documentation
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 4 days. It will be closed if no further activity occurs within 3 days of this comment.
Has there been a discussion of changing the defaults to ctrl+c/ctrl+v by default similar to how the default conhost+cmd experience in windows is at the moment? (I assume there is a reason like making a lot of *nix programs hard to use?..)
We explicitly changed the defaults away from Ctrl+C/Ctrl+V _because_ of that reason -- it's hard to use your shell and your CLI applications when your terminal emulator gets in the way by eating common key combos. #2446 goes a long way to fixing this, because it lets you bind Ctrl+C over copy but still send ^C to the connected application when there's no selection; there is, however, no reasonable heuristic we can use for Ctrl+V.
We're trying to make something approachable for Windows _and_ Linux folks, but in some cases the best we can do is choose one option and make it trivially easy to change for the people who disagree.
Okay
@DHowett-MSFT What was wrong w/ how it worked in the other command prompt?
If text is selected CTRL+C copies
if text is not selected CTRL+C sends signal
@onionhammer When that comment was authored, the Terminal had a bug where whatever keybinding you had for copy would always try to copy, even if there wasn't a selection. Now that that bug is fixed, we can think about maybe adding Ctrl+C as a default copy keybinding again.
@zadjii-msft afaict it works perfectly if I just add the key-binding in manually
Also, please refer to the user documentation
already solve my problem but is there a strict format for the definition of such command? cuz when I type a command for copying, error always happens. Although my format looks like other comand
Most helpful comment
We explicitly changed the defaults away from Ctrl+C/Ctrl+V _because_ of that reason -- it's hard to use your shell and your CLI applications when your terminal emulator gets in the way by eating common key combos. #2446 goes a long way to fixing this, because it lets you bind Ctrl+C over copy but still send
^Cto the connected application when there's no selection; there is, however, no reasonable heuristic we can use for Ctrl+V.We're trying to make something approachable for Windows _and_ Linux folks, but in some cases the best we can do is choose one option and make it trivially easy to change for the people who disagree.