Visual Studio 2012或2013年的Emacs Keybindings [英] Emacs Keybindings in Visual Studio 2012 or 2013

查看:127
本文介绍了Visual Studio 2012或2013年的Emacs Keybindings的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我宁愿在MSVS中使用Emacs键盘。在MSVS 2008中,这是原生支持的,在MSVS2010中有一个扩展来实现这个

I would prefer to have Emacs keybindings in MSVS. In MSVS 2008, this was natively supported, and in MSVS2010 there was an extension to achieve this

http://blogs.msdn.com/b/visualstudio/archive/2010/09/01 /emacs-emulation-extension-now-available.aspx

我可以在MSVS 2012中安装此扩展吗? (我迄今为止没有成功...)有没有另一种方法来实现Emacs的键绑定?

Can i install this extension in MSVS 2012? (I have thus far been unsuccessful...) Is there another way to achieve Emacs keybindings?

推荐答案

我想出了如何获得VS 2010的emacs仿真扩展,以在VS 2012上安装和运行。这是有点从内存,但这是我做的。

I figured out how to get the emacs emulation extension for VS 2010 to install and run on VS 2012. This is a bit from memory, but here is what I did.


  1. 下载 Emacs仿真扩展程序

将其从EmacsEmulations.vsix重命名为EmacsEmulations.zip并解压到文件夹中。

Rename it from EmacsEmulations.vsix to EmacsEmulations.zip and unzip into a folder.

在extensions.vsixmanifest文件(XML)上编辑< VisualStudio Version =10.0> 值:

Edit the <VisualStudio Version="10.0"> value on the extensions.vsixmanifest file (XML):

<SupportedProducts>
    <VisualStudio Version="11.0">
    <Edition>Pro</Edition>
    </VisualStudio>
</SupportedProducts>


注意:Visual Studio 2013可以通过设置版= 12.0。 VS Express可以通过设置< Edition> Express_All< / Edition>

Note: Visual Studio 2013 works by setting Version="12.0". And VS Express can be used by setting <Edition>Express_All</Edition>


  1. Zip 文件夹内的内容备份并将其重命名为EmacsEmulations.vsix。

  1. Zip the content inside the folder back up and rename it back to EmacsEmulations.vsix.

以管理员身份运行vsix文件。这是必需的,因此扩展名可以将Emacs.vsk写入程序文件文件夹。我不知道最好的方法,所以我以管理员身份运行命令提示符,然后从提示符执行 start emacsemulations.vsix

Run the vsix file as administrator. This is required so the extension can write Emacs.vsk into the program files folder. I wasn't sure the best way to do this so I ran a command prompt as admin and then executed start emacsemulations.vsix from the prompt.

以管理员身份启动VS 2012(仅一次)。此时,扩展程序应显示为安装在扩展管理器中,键盘绑定应列在工具/选项/键盘中。选择emacs keybindings。

Start VS 2012 as Administrator (one time only). At this point, the extension should show up as installed in the extension manager and the keybinding should be listed in Tools/Options/Keyboard. Select the emacs keybindings.

此时它应该是正常的。这对我来说不行,但我忽略了以admin的方式运行第5步,所以不得不手动将emacs.vsk复制到正确的位置。当它仍然不起作用时,我提起了VS命令窗口(Windows /其他Windows /命令窗口),并键入Edit.EmacsBreakLine,并提示并瞧瞧。

At this point it should be working. It wasn't working for me though, but I neglected run step 5 as admin so had to manually copy emacs.vsk into the right spot. When it still wasn't working I brought up the VS command window (Windows/Other Windows/Command Window) and typed Edit.EmacsBreakLine and the prompt and voila.

我没有任何更多的信息,所以YMMV。祝你好运!

I don't have any more information than that so YMMV. Good luck!

这篇关于Visual Studio 2012或2013年的Emacs Keybindings的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆