简体   繁体   English

如何使用Emacs仿真扩展将另一个应用程序中的文本粘贴到Visual Studio中?

[英]How Can I Paste Text From Another Application Into Visual Studio with Emacs Emulation Extension?

After copying text from another program, when I switch to Visual Studio with the Emacs Emulation extension and try to paste the text, none of the following methods work: 从其他程序复制文本后,当我切换到带有Emacs Emulation扩展的Visual Studio并尝试粘贴文本时,以下方法都不起作用:

  • Ctrl-Y (Emacs emulation extension keybinding for 'yank' [paste]) Ctrl-Y('yank'[粘贴]的Emacs仿真扩展键绑定)
  • Clicking paste on the toolbar 单击工具栏上的粘贴
  • Edit > Paste 编辑>粘贴
  • Right click > paste 右键单击>粘贴

How can I paste text from an outside application into a copy of Visual Studio that is running the Emacs Emulation extension ? 如何将外部应用程序中的文本粘贴到运行Emacs Emulation扩展的Visual Studio副本中

As above - Ctrl - Shift - Ins ( Edit.CycleClipboardRing ) does work for this (at least it does for me having got the emacs add-in to load in VS2012,) so you can then go into Tools->Options, select Environment->Keyboard, and remove the Ctrl - Y shortcut, then assign Ctrl - Y to Edit.CycleClipboardRing . 如上所述 - Ctrl - Shift - InsEdit.CycleClipboardRing )确实可以正常工作(至少我已经在VS2012中加载了emacs加载项,所以你可以进入Tools-> Options,选择Environment - >键盘,然后删除Ctrl - Y快捷键,然后将Ctrl - Y分配给Edit.CycleClipboardRing

Repeating Ctrl - Y does cycle the clipboard ring, which is a side-effect I can live with... I guess if you reassign Alt - Y to be the same command then generally this will do what you expect. 重复Ctrl - Y确实循环剪贴板响铃,这是我可以忍受的副作用...我想如果你重新分配Alt - Y是相同的命令,那么通常这将做你期望的。

Ctrl-Shift-Ins ( Edit.CycleClipboardRing ) will paste the contents of the Windows clipboard into Visual Studio. Ctrl-Shift-InsEdit.CycleClipboardRing )会将Windows剪贴板的内容粘贴到Visual Studio中。

As far as the other, more standard methods not working, this is a known bug in the Emacs Emulation extension. 至于另一种,更多的标准方法不起作用,这是Emacs Emulation扩展中的一个已知错误。 From the extension's Visual Studio Gallery page : 扩展的Visual Studio Gallery页面

Cut/copy/paste from other applications into Visual Studio does not work with the Emacs extension installed. 从其他应用程序剪切/复制/粘贴到Visual Studio中不能与安装的Emacs扩展一起使用。 We're working on a fix for this issue and will post an updated version of the extension when a fix is available. 我们正在针对此问题进行修复,并在修复程序可用时发布更新版本的扩展程序。

暂无
暂无

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 在Visual Studio扩展中,如何确定安装了哪些Visual Studio更新? - From within a Visual Studio extension, how can I determine which Visual Studio updates are installed? 如何在 Visual Studio 中获得 Emacs 样式的键绑定? - How can I get Emacs style key bindings in Visual Studio? 如何从 Visual Studio 中的另一个解决方案调试项目? - How can I debug a project from another solution in Visual Studio? 如何告诉运行中的Visual Studio 2012实例从另一个应用程序调用的VBScript中运行某个宏? - How can I tell a running Visual Studio 2012 instance to run a certain macro from within a VBScript invoked by another application? 我可以复制项目的一些引用并将其粘贴到Visual Studio中的另一个项目引用吗? - Can I copy some References of a project and paste it to another project's references in Visual Studio? 如何以编程方式检查 Visual Studio 扩展中的堆栈? - How can I programmatically examine the stack in my Visual Studio extension? 如何自动将由另一个应用程序制作的文件添加到Visual Studio解决方案中 - How can I automatically add files to a Visual Studio solution that were made by another application 是否可以在Visual Studio中将引用从一个项目复制/粘贴到另一个项目? - Is it possible to copy / paste References from one project to another in Visual Studio? 如何使用Visual Studio 2015调试visual studio 15的扩展? - How can I use Visual studio 2015 to debug an extension for visual studio 15? 如何从Visual Studio 2019部署Blazor服务器托管的应用程序 - How can I deploy a Blazor server-hosted application from Visual Studio 2019
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM