【问题标题】:VSCode Mac BigSur option key not working as expectedVSCode Mac BigSur 选项键未按预期工作
【发布时间】:2021-04-21 05:53:06
【问题描述】:

当我按 [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.

【问题讨论】:

  • 我也遇到了一些问题,例如苹果 m1 上的格式化快捷方式。我必须更改快捷方式才能使其正常工作。例如如果我改变 opt+shift+w 来包装它就可以了。
  • 我也尝试过使用 "keyboard.dispatch": "keyCode" 的 Vscode 解决方案,但这对我也不起作用

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


【解决方案1】:

尝试更改键盘布局。

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

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

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2021-08-04
    • 2018-06-27
    • 2017-10-14
    • 1970-01-01
    • 1970-01-01
    • 2021-09-23
    • 2012-02-18
    • 2014-12-03
    相关资源
    最近更新 更多