在Windows XP上,是否有快捷键可以将剪贴板的内容粘贴到命令提示符窗口中(而不是使用鼠标右键)?

典型的Shift+Insert在这里似乎不起作用。


当前回答

如果您是Cygwin用户,可以将以下内容附加到~/。bashrc文件:(

stty lnext ^q stop undef start undef

并将以下内容发送到您的~/。inputrc文件:

"\C-v": paste-from-clipboard
"\C-C": copy-to-clipboard

重新启动Cygwin终端。

(注意,我使用大写的C表示复制,因为在大多数控制台中CTRL+ C被分配给break函数。根据个人口味调味。)

其他回答

是的. .但尴尬。链接

alt +空格,e, k <——用于复制和 alt +空格,e, p <-用于粘贴。

这不是一个真正的快捷方式,但只是一个快速访问控制菜单:Alt-space E P

如果你可以使用你的鼠标,右键单击cmd窗口作为粘贴时,我尝试了它。

最简单的方法是复制文本,你想把它粘贴在CMD和打开CMD去“属性”——>“选项”选项卡---->检查(给勾标记)“quickkedit模式”,点击“确定”.....现在你可以从剪贴板粘贴任何文本做右击从你的鼠标。

谢谢你!

不是真的编程相关,但我在谷歌上找到了这个,没有直接的键盘快捷键,但使它更快一点。

启用/关闭快速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时粘贴文本:

右键单击标题栏,按菜单上的编辑,然后按粘贴。

谢谢,巴勃罗,为参考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