LoginSignup
7

More than 5 years have passed since last update.

posted at

updated at

Visual Studio Community 2017でEmacs Keybind

Visual Studio Community 2017でEmacs Keybind

MicrosoftがEmacs Keybindのアドオンを公開しています。
https://marketplace.visualstudio.com/items?itemName=VisualStudioProductTeam.Emacsemulation

が、2017は対応しておらずインストールできません。
が、自分で対応バージョンを書き換えるとインストールできます。
以下やりかた。

上記URLからEmacsEmulations.vsixをダウンロード。
拡張子を.zipに変えて解凍し、extension.vsixmanifestというファイルを開き、
<VisualStudio Version="10.0"><VisualStudio Version="15.0">にする。
再度zipに圧縮して拡張子を.vsixにし、実行するとインストールが始まります。

VisualStdioを起動し適当なプロジェクトを開き
ツール->オプション->環境->キーボード からEmacsキーバインドが選べるようになります。
一度管理者権限を要求されます。
Emacsキーバインドを選んだ後は一度VisualStudioを再起動すると次回より効きます。

以上です。

デフォルトではC-hに編集.置換が割り当てられているので
編集.後退削除を割り当てればbackspaceになります。
C-[をウィンドウ.前のタブ、C-]をウィンドウ.次のタブに設定して使っています。
編集.左右スペースの削除、など色々な項目があるので見てみるのも面白いかと思います。
おすすめのバインドがあれば教えてください。

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
What you can do with signing up
7