0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 1 year has passed since last update.

【VS2022】 Emacs Emulationでtabスニペット挿入の一部を使えるようにした

Posted at

背景

Visual StudioでEmacsキーバインドを使うならEmacs Emulations一択ですが、この拡張機能はctor, propなどのtabキー2回押しのスニペットの挿入に対応していません。

行った変更

設定ではどうすることもできなかったので、ソース側を改変しました。
すべてのソースを追えているわけではないですが、おそらくインテリセンスの判定をしている関数にTABINSERTコマンドを追加しています。

効果

一部のスニペット(prop, ctorなど)がWindows10のマシンでは使えるようになりました。
が、手元のWindows11のマシンではうまく動作しませんでした…。
設定のせいなのか環境のせいなのか微妙ですが、一部使えるということでこれで、ひとまず様子を見て使ってみます。

0
0
0

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
  3. You can use dark theme
What you can do with signing up
0
0

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?