【发布时间】:2019-05-24 08:20:44
【问题描述】:
我喜欢在 VSCode 中使用键盘上的德语变音符号“ö”、“Ö”、“ä”和“Ä”进行编码,即使用这些键输入方括号和大括号。这是我在keybindings.json 中尝试过的:
{ "key": "ö", "command": "type", "args": { "text": "[" }, "when": "editorTextFocus" },
{ "key": "ä", "command": "type", "args": { "text": "]" }, "when": "editorTextFocus" },
{ "key": "Shift+ö", "command": "type", "args": { "text": "{" }, "when": "editorTextFocus" },
{ "key": "Shift+ä", "command": "type", "args": { "text": "}" }, "when": "editorTextFocus" },
{ "key": "Alt-ö", "command": "type", "args": { "text": "ö" }, "when": "editorTextFocus" },
{ "key": "Alt-ä", "command": "type", "args": { "text": "ä" }, "when": "editorTextFocus" },
{ "key": "Alt-Shift+ö", "command": "type", "args": { "text": "Ö" }, "when": "editorTextFocus" },
{ "key": "Alt-Shift+ä", "command": "type", "args": { "text": "Ä" }, "when": "editorTextFocus" }
VSCode 抱怨:
您将无法在当前的情况下生成此组合键 键盘布局。
有没有一种简单的方法可以教 VSCode 允许绑定任何键,而不仅仅是预定义的键?
【问题讨论】:
标签: visual-studio-code vscode-settings key-bindings keyboard-layout