VSCode Mac BigSur 选项键未按预期工作

时间:2021-04-21 05:53:06

标签: visual-studio-code keyboard-shortcuts macos-big-sur apple-m1

当我按 [Option+Z] 切换自动换行时,它会打印一个字符 (ˀ)

操作系统:Mac BigSur
处理器: M1

按键事件日志

[2021-04-21 11:15:15.609] [renderer3] [info] [KeybindingService]: / Received  keydown event - modifiers: [alt], code: AltLeft, keyCode: 18, key: Alt
[2021-04-21 11:15:15.609] [renderer3] [info] [KeybindingService]: | Converted keydown event - modifiers: [alt], code: AltLeft, keyCode: 6 ('Alt')
[2021-04-21 11:15:15.609] [renderer3] [info] [KeybindingService]: \ Keyboard event cannot be dispatched in keydown phase.
[2021-04-21 11:15:15.978] [renderer3] [info] [KeybindingService]: + Storing single modifier for possible chord alt.
[2021-04-21 11:15:16.283] [renderer3] [info] [KeybindingService]: + Clearing single modifier due to 300ms elapsed.

1 个答案:

答案 0 :(得分:0)

尝试更改键盘布局。

  • 转到 System Preferences > Keyboard > Input Sources
  • 添加 English > ABC
  • 删除那里的现有源。 (在我的例子中,ABC India 包含用于 Option+z 组合键的特殊字符 ˀ,ABC 输入源将用 Ω 替换它,它以某种方式与 VS Code 一起触发特殊操作将其作为文本插入)

最后输入源应该是这样的: Keyboard Settings Window