How to enable the fastest copy/paste command in CMD

On Windows 10, it is finally supported by Ctrl + C and Ctrl + V to paste in the Command Prompt window. However, this feature is not activated by default, but you have to follow a few simple steps to enable it. In the following article, the administrator will guide you on how to activate the Ctrl + C and Ctrl + V key combinations to copy and paste commands in the Command Prompt window. Command prompt

1. On Windows 10, use Ctrl + V to enable command paste in Command Prompt

Let's learn how to enable CTRL + V in Command Prompt first, because it's easier. Always make sure your system is up-to-date. Step 1: Right-click anywhere in the Command Prompt and select Properties.
Select Properties
Select Properties
Step 2: In the editing options, go to Options and select Use CTRL + SHIFT + C/V as Copy and Paste.
Select Use CTRL + SHIFT + C/V as Copy/Paste
Select Use CTRL + SHIFT + C/V as Copy/Paste
Step 3: Click OK to save this selection. Now, the copy-paste commands in Command Prompt will be activated. Find any text or code online that you want. You can then copy this selection by right-clicking Copy or pressing CTRL+C, whichever is easier for you.
Right-clicking Copy or pressing CTRL+C
Right-clicking Copy or pressing CTRL+C
Step 4: To paste text into Terminal, use the keyboard shortcut Ctrl+Shift+V. You can also paste by right-clicking. Step 5: You can also use the simpler CTRL+V to paste without the confusing Shift key. Such variations don't really make sense, except to Windows developers! Therefore, if there are any problems, you can always revert to using Ctrl+Shift+V as the default key combination for pasting.
You can also use the simpler CTRL+V to paste
You can also use the simpler CTRL+V to paste

How to copy commands in Command Prompt

CTRL + C in Command Prompt is a little more difficult to use than CTRL + V. That's because you can't select any text with the mouse pointer. Fortunately, there is a workaround for this. Step 1: Use Ctrl+A or Select All from the right-click menu to highlight all text in the Command Prompt. This is just a simple tweak to select a certain line of text and copy.
Use Ctrl+A or Select All from the right-click menu
Use Ctrl+A or Select All from the right-click menu
Step 2: Release the mouse button. The entire screen will be deselected and the small mouse pointer will be active.
The small mouse pointer is activated
The small mouse pointer is activated
Step 3: You can easily select any row in Terminal, and that row will be in the selection of the mouse pointer. Whether you use a trackpad or a mouse, there is always a cursor that can select as much or as little of the target text as you want.
You can select any row in Terminal
You can select any row in Terminal
You can use the above trick to select any line of text, as shown here. The text can now be copied using CTRL+C. Unfortunately, right-clicking may not work, as it will deselect everything, and then you will have to repeat the process again. Therefore, the article recommends using the keyboard shortcut CTRL+C. You can also use Ctrl+Shift+C if needed.
The text can now be copied using CTRL+C
The text can now be copied using CTRL+C
The following image shows the simultaneous use of CTRL+C/CTRL+V in a Terminal window.
Simultaneous use of CTRL+C/CTRL+V in a Terminal window
Simultaneous use of CTRL+C/CTRL+V in a Terminal window

2. On Windows 10, Windows 8, Windows 7, and Windows Vista

First you press Alt + Space to open the Menu window, then you press the E key, and then the P key. Press combination key

3. Creating an AutoHotkey Ctrl + V

This way, you must first download AutoHotkey to your computer and install it (if your computer has not installed AutoHotkey). After you have installed the AutoHotkey script, you can create a new AutoHotkey or add more to the existing script. Here is the Script you can use in case of any formatting errors:
#IfWinActive Ahk_class ConsoleWindowClass
^ V ::
SendInput  Raw% vào clipboard%
trở
#IfWinActive
This script simply uses the SendInput function to send data into the Command Prompt window. This method is much faster than other methods. authohotkey Download the PasteCommandPrompt AutoHotkey Script to your computer and install it here:
http://www.howtogeek.com/wp-content/uploads/gg/up/PasteCommandPrompt.ahk
You can refer to some more articles below:
  • Trick to easily launch Command Prompt on Windows 10
  • Instructions for using Command Prompt
  • 5 tricks you didn't know about Command Prompt
Good luck!
Source: https://thewindowsfan.com/how-to-enable-the-fastest-copy-paste-command-in-cmd/

Nhận xét

Bài đăng phổ biến từ blog này

Hands on: Windows 11’s redesigned File Explorer with new look, drag & drop for tabs

Nvidia confirms Windows 11 / Windows 10 high CPU usage bug, promises emergency hotfix

Microsoft is bringing OpenAI ChatGPT plugins to Windows 11