在Windows XP上,是否有快捷键可以将剪贴板的内容粘贴到命令提示符窗口中(而不是使用鼠标右键)?
典型的Shift+Insert在这里似乎不起作用。
在Windows XP上,是否有快捷键可以将剪贴板的内容粘贴到命令提示符窗口中(而不是使用鼠标右键)?
典型的Shift+Insert在这里似乎不起作用。
当前回答
不是真的编程相关,但我在谷歌上找到了这个,没有直接的键盘快捷键,但使它更快一点。
启用/关闭快速kedit模式。
Open the MS-DOS program, or the command prompt. Right-click the title bar and press Properties. Select the Options tab. Check or un-check the QuickEdit Mode box. Press OK. In the Apply Properties To Shortcut dialog, select the Apply properties to current window only if you wish to change the QuickEdit setting for this session of this window only, or select Modify shortcut that started this window to change the QuickEdit setting for all future invocations of the command prompt, or MS-DOS program.
当quickkedit启用时,复制文本:
单击并将鼠标指针拖动到所需文本上。 按Enter(或右键单击窗口中的任何位置)将文本复制到剪贴板。
在启用quickkedit时粘贴文本:
右键单击窗口中的任意位置。
当quickkedit被禁用时复制文本:
右键单击标题栏,按菜单上的“编辑”,然后按“标记”。 将鼠标拖到要复制的文本上。 按Enter(或右键单击窗口中的任何位置)将文本复制到剪贴板。
在禁用quickkedit时粘贴文本:
右键单击标题栏,按菜单上的编辑,然后按粘贴。
其他回答
在VISTA命令提示下: 单击系统图标 从菜单中选择默认值 在选项组的选项选项卡上 选择“快速编辑模式”、“插入模式”和“自动完成” 我想是“快速编辑模式”让它起作用的。
要在插入点粘贴剪贴板中的任何内容:右键单击。 从命令窗口复制 通过按住鼠标左键并将指针拖过要复制的内容进行选择 选中后,右击 若要在插入点粘贴,请再次右击。
谢谢,巴勃罗,为参考AutoHotkey实用程序。 因为我已经安装了Launchy,它使用Alt+Space,我必须修改它,但添加Shift键如下所示:
; Paste in command window
^V::
; Spanish menu (Editar->Pegar, I suppose English version is the same, Edit->Paste)
Send !+{Space}ep
return
我个人使用一个小的AutoHotkey脚本来重新映射某些键盘功能,对于我使用的控制台窗口(CMD):
; Redefine only when the active window is a console window
#IfWinActive ahk_class ConsoleWindowClass
; Close Command Window with Ctrl+w
$^w::
WinGetTitle sTitle
If (InStr(sTitle, "-")=0) {
Send EXIT{Enter}
} else {
Send ^w
}
return
; Ctrl+up / Down to scroll command window back and forward
^Up::
Send {WheelUp}
return
^Down::
Send {WheelDown}
return
; Paste in command window
^V::
; Spanish menu (Editar->Pegar, I suppose English version is the same, Edit->Paste)
Send !{Space}ep
return
#IfWinActive
还有一个很棒的开源工具叫做clink,它扩展了cmd的许多特性。其中之一就是能够使用ctrl+v插入文本。
而不是“右击”....开始你的会话(一旦你在命令提示窗口)通过按Alt/空格键。这将打开命令提示窗口菜单,您将看到熟悉的带下划线的键盘命令快捷方式,就像Windows GUI一样。
好运!