How to paste text from another application in 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 text, none of the following methods work:

  • Ctrl-Y (Emacs emulation extension for binding for "yank" [paste])
  • Clicking the paste on the toolbar
  • Edit> Paste
  • Right Click> Paste

How do I paste text from an external application into a copy of Visual Studio that is running the Emacs Emulation extension ?

+6
source share
2 answers

Ctrl-Shift-Ins ( Edit.CycleClipboardRing ) Edit.CycleClipboardRing contents of the Windows clipboard into Visual Studio.

Unlike other standard methods that do not work, this is a known bug in Emacs Emulation. From the Visual Studio Gallery Page Extension :

Cut / copy / paste from other applications in Visual Studio does not work with the installed Emacs extension. We will fix this problem and will publish an updated version of the extension when a fix is ​​available.

+3
source

As stated above - Ctrl - Shift - Ins ( Edit.CycleClipboardRing ) works for this (at least for me I got the emacs add-in to load into VS2012), so you can then go to Tools-> Options, select "Environment-> Keyboard "and remove the shortcut Ctrl - Y , then assign Ctrl - Y to Edit.CycleClipboardRing .

Repeating Ctrl - Y makes the clipboard ring cycle, which is a side effect that I can live with ... I assume that if you reassign Alt - Y to be the same command, then usually it will do what you expect.

+6
source

All Articles