![在 Windows 命令提示符中粘贴的键盘快捷键](https://linux22.com/image/1211083/%E5%9C%A8%20Windows%20%E5%91%BD%E4%BB%A4%E6%8F%90%E7%A4%BA%E7%AC%A6%E4%B8%AD%E7%B2%98%E8%B4%B4%E7%9A%84%E9%94%AE%E7%9B%98%E5%BF%AB%E6%8D%B7%E9%94%AE.png)
是否有键盘快捷键可以粘贴到 Windows 命令提示符(或至少是 powershell)中?
我知道您可以右键单击,但如果不触摸鼠标就可以做到这一点,那将会很方便。
答案1
不幸的是微软拒绝添加SHIFT+INSERT
((
对于regedit
坚果:
Windows Registry Editor Version 5.00
[HKEY_CURRENT_USER\Console]
; 1 - enable improved conhost features.
"ForceV2"=dword:00000001
; Use wrapped text selection.
"LineSelection"=dword:00000001
; Re-wrap text on resize operations.
"LineWrap"=dword:00000001
; Allow close on Alt-F4 hotkey.
"AllowAltF4Close"=dword:00000001
; Enable interpretation of VT control codes.
"VirtualTerminalLevel"=dword:00000001
; 1 - activate "Insert mode", opposite of "Override mode".
"InsertMode"=dword:00000001
; Disable word selection with Shift+ARROW, use Ctrl+M to enter to "Mark Mode".
"ExtendedEditKey"=dword:00000000
; Not really sure what it is. Default is "0".
"ExtendedEditKeyCustom"=dword:00000000
; Allow selection by mouse & copy/paste by mouse right click.
; reg add HKCU\Console /v QuickEdit /t REG_DWORD /d 1 /f
"QuickEdit"=dword:00000001
; Enables Ctrl+Shift+C/V style copy/paste.
; https://github.com/microsoft/terminal/issues/397
"InterceptCopyPaste"=dword:00000001
; Whether to replace characters on paste (e.g. Word “smart quotes” are replaced with regular
; quotes). I want for paste to insert text literary, so disabled the "feature" (by the value "0")!
"FilterOnPaste"=dword:00000000
; Do not strip leading zeros when copying on selection (like "001" => "1").
"TrimLeadingZeros"=dword:00000000
; Disable Ctrl+C/V/A, use only Ctrl+Shift+C/V from "InterceptCopyPaste".
"CtrlKeyShortcutsDisabled"=dword:00000001
答案2
按Alt+Space然后按E最后P
这将打开 alt 菜单 > 编辑 > 粘贴
答案3
查看此内容Stackoverflow 文章. 它们提供了自动热键脚本。如果您不熟悉 AutoHotKey,您应该熟悉它。它是一款免费应用程序,可让您在 Windows 上自动执行大量操作。我使用它来完成许多任务。您甚至可以编译脚本,然后运行可执行文件。非常适合分发给不太懂技术的人或运行在拇指驱动器上以实现便携性。
他们还提到了这一点:
ALT+SPACE+E+K <-- 用于复制
ALT+SPACE+E+P <-- 粘贴
答案4
您可以在内部使用 PowerShell康埃穆,它允许您使用 ctrl-v。
Ctrl-v 在 PowerShell ISE 中也有效。