3
1

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 5 years have passed since last update.

VS Code に Emacs っぽいコメント切り替え (M-;) を導入する

Last updated at Posted at 2018-05-23

単に editor.action.commentLinealt+; にバインドしただけですが、 Emacs の M-; に近い挙動になった気がします。

Emacs Keymap (hiro-sun.vscode-emacs) を入れていても問題なく使えます。

手順

keybindings.json に以下を追加する

keybindings.json
[
    {
        "key": "alt+;",
        "command": "editor.action.commentLine",
        "when": "editorTextFocus && !editorReadonly"
    }
]

以上

3
1
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
3
1

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?