1
0

More than 1 year has passed since last update.

VSCodeでcommand+[が使えない

Posted at

環境

MacBook Air (M1, 2020)
MacOS Monterey 12.2.1
VisualStudioCode 1.65.2

症状

コマンドキーと[(左角かっこ)の同時押しがVSCodeに認識されない。インデント解除が簡単にできなくて地味に不便。
command+shift+[とかも認識しないが、command+](右角かっこ)とかは認識する。
FinderやChromeでは使えるのでVSCode側の問題らしい。

対応方法

command[と同時にfnを押すと認識されるそう。
https://github.com/microsoft/vscode/issues/136934
command+shift+[とかも同じようにちゃんと認識させられた。

毎回そんなことしてられないので、Karabinerで設定する。
https://gist.github.com/fukayatsu/c93d036e0b6cc010289facb67fc325e8
似たようなことしている人がいたのでそれを使わせてもらったが、この人は同時押しをcapslockで挟んでいた。
それでも動いたけどなんとなく気持ち悪いので先に見つけたfnとの同時押しに変えて使っている。

"to":[
  {
    "key_code":"open_bracket",
    "modifiers":[
      "command",
      "fn"
    ]
  }
]

こう置き換えても問題なく動いた。

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