Visual Studio 2012 或 2013 中的 Emacs 键绑定 [英] Emacs Keybindings in Visual Studio 2012 or 2013

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

问题描述

我更喜欢在 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) 上的 值:

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 通过设置 Version="12.0" 工作.并且VS Express可以通过设置Express_All

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

  1. 压缩文件夹内的内容备份并将其重命名回 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(仅限一次).此时,扩展应显示为已安装在扩展管理器中,并且键绑定应列在 Tools/Options/Keyboard 中.选择 emacs 键绑定.

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.

此时它应该可以工作了.虽然它对我不起作用,但我忽略了以管理员身份运行第 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 键绑定的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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