简体   繁体   中英

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?

您可以尝试 Emacs 键盘方案( Tools->Options->Environment->Keyboard

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

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.

在发布 Emacs 键绑定/仿真将不再在 Visual Studio 2010 中可用后, Emacs 仿真现在可作为 VS 2010 的免费扩展提供

我使用VisEmacs是因为 emacs 键盘方案不如 emacs 本身那么好。

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

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.

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.

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....

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).

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM