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

Chi*_*ati 7 keyboard-shortcuts visual-studio-code macos-big-sur apple-m1

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

\n

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

\n

按键事件日志

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

小智 17

尝试更改键盘布局。

\n
    \n
  • 前往System Preferences>>KeyboardInput Sources
  • \n
  • 添加English>ABC来源
  • \n
  • 删除现有的源。(在我的例子中,它ABC India包含用于 Option+z 组合键的特殊字符 \xcb\x80,ABC输入源将用 \xce\xa9 替换它,它以某种方式与 VS Code 一起触发特殊操作,而不是将其插入为文本)
  • \n
\n

最后,输入源应如下所示:\n键盘设置窗口

\n