Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Using Emacs bindings in Visual Studio Community 2015

I am trying to follow the below StackOverflow question to get Emacs in Visual Studio Community but have had no success.

Emacs Keybindings in Visual Studio 2012 or 2013

I was able to get to step 5) from the above question's best answer: "execute start emacsemulations.vsix from the administrator command prompt"

However, I get: "This extension is not installable on any currently installed products"

The install log says: "Found Installed Product - Microsoft Visual Studio Community 2015" and "Found Installed product - Microsoft Visual Studio 2015 Shell (Integrated)"

I then tried skipping to step 7) and copied emacs.vsk into "C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common 7\IDE" and typed Edit.EmacsBreakLine in VS's command window (View/Other Windows/Command Window) but got "Command "Edit EmacsBreakLine" is not available".

At the end of step 5 or step 7, the Emacs emulator does not work. My hunch is that the version set in the EmacsEmulation.vsix - extension.vsixmanifest is set incorrectly, but I do not know which version to use:

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

I have tried version=12 and edition=Express_All

Thanks!

like image 819
user3211306 Avatar asked Sep 16 '15 20:09

user3211306


1 Answers

I made it work by change the version to 14. So it will look like this:

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

All the rest of the steps are the same from this post: https://stackoverflow.com/a/14087731/3112973

And make sure that Emacs.vsk is listed in C:\Program Files (x86)\Microsoft Visual Studio 14.0\Common7\IDE\. This is the file with the key binding assignments. If not, just copy it from the folder that you unzipped in step 2 in the link.

like image 184
Tony Avatar answered Oct 16 '22 18:10

Tony