Ray
Ray

Reputation: 192196

How can I get Emacs style key bindings in Visual Studio?

How can I get Emacs style key bindings in Visual Studio? Is it available in Settings? Do I need a Plug-in?

Upvotes: 37

Views: 21512

Answers (10)

Ray
Ray

Reputation: 192196

After posting that Emacs keybindings/emulation would no longer be available in Visual Studio 2010, Emacs Emulation is now available as a free extension for VS 2010.

Upvotes: 5

user922020
user922020

Reputation: 752

For VS2019 it is an extension written by the community.

(Installing the extension)

  1. Open Visual Studio 2019
  2. Click Extensions -> Manage Extensions
  3. Select "Online" in the left-side panel.
  4. In the search box, enter "emacs"
  5. As of March 2020, "Emacs Emulation 2" seems to be the thing. Select it and click "Download"
  6. Close the window and close all open copies of Visual Studio. VSIX Installer will install the plug-in with your permission.

(Turning on EMACS)

  1. Open Visual Studio
  2. Use the menu Tools -> Customize. Click the "Keyboard" button at the bottom.
  3. In the box at the top there will be an EMACS scheme that wasn't there before. Pick it. Click OK.
  4. Close and reopen any code/text editing windows.

Press Ctrl-A, Ctrl-E, Ctrl-F.. It feels like a warm blanket on a cold day.

Upvotes: 7

Ray
Ray

Reputation: 192196

Unfortunately, the Emacs emulation extension for VS 2010 is not officially supported for VS 2012.

However, a workaround is possible if follow the steps outlined in this answer for an SO question on getting Emacs key-bindings in VS2012

Upvotes: 2

jgibson
jgibson

Reputation: 1043

If you're using Visual Studio Express 2008 and want the Emacs key bindings then you need to install the Visual C++ edition of VSE 2008. Initially I only installed the C# edition and there were no custom key bindings in Tools->Options->Environment->Keyboard. Once I installed the C++ edition the Emacs key bindings became available in both products.

Upvotes: 1

Torleif
Torleif

Reputation: 2354

Xkeymacs does a really good job of this. It is possible to configure this tool for every application running on your desktop.

Upvotes: 12

Michael Paulukonis
Michael Paulukonis

Reputation: 9100

I used the Emacs keyboard scheme for a few days, but it quickly drove me crazy -- I couldn't rebind keys they way I was used to in Emacs (or couldn't find how to rebind quickly).

I should try XKeyMacs....

Upvotes: 1

Alex B
Alex B

Reputation: 24926

I use VisEmacs because the emacs keyboard scheme isn't quite as nice as emacs itself.

Upvotes: 3

Christian C. Salvadó
Christian C. Salvadó

Reputation: 827256

With Settings:

Try the Emacs keyboard scheme on Environment options.

Plugins:

I have only seen this one: VisEmacs, it will integrate Emacs as the default text editor for Visual Studio.

Upvotes: 5

jfs
jfs

Reputation: 16758

You can try the Emacs keyboard scheme (Tools->Options->Environment->Keyboard)

Upvotes: 25

Jimmy
Jimmy

Reputation: 28386

A quick Live search for "visual studio emacs" gave this page. I'm not sure how thorough it is though (having never used emacs myself).

Upvotes: 0

Related Questions