Implementing copy-and-paste functionality in the cmd command line and PowerShell often, a friend of the command line or PowerShell will encounter this situation: Paste text is very easy, right-select paste on it, but you want to copy command line or PowerShell commands, I don't know how to do it. In fact, you just need to change its properties. Ps:powershell is a task-based command-line shell, which is the same as the CMD command-line setting. Left-click the cmd handler in the upper-right corner and select Properties. (or press ALT + SPACEBAR). Select high-speed editing mode and click OK.
At this point, we are able to select the text in the command line.
You can implement paste by double-clicking the right button on the new command line.
You can also select Properties--edit--mark, repeat the above selection, paste step. But this can only run once.
Copy-and-paste functionality in cmd command line and PowerShell