无法注册“ctrl + shift + alt + [DirectionalArrow]”

无法注册“ctrl + shift + alt + [DirectionalArrow]”

我在 Ubuntu 20.04 的 vscode 中工作,Ubuntu 似乎不允许我使用ctrl+ shift+ alt+ DirectionalArrow。如果我按ctrl+ shift+ alt+enter或任何其他键,它可以工作,但如果我尝试ctrl+ shift+ alt+ ,DirectionalArrow它就不会注册。即使ctrl+ shift+也DirectionalArrow可以注册。

这会有什么原因吗?我应该怎么做才能进一步解决问题?

答案1

打开文件 > 偏好设置 > 键盘快捷键或ctrl+k crtl+s

将出现此窗口

选择此图标 打开键盘快捷键(JSON)

将出现此窗口

添加此项以覆盖默认值

    { "key": "shift+alt+"command": "editor.action.copyLinesDownAction",
                                     "when": "editorTextFocus" },
{ "key": "shift+alt+"command": "editor.action.copyLinesUpAction",
                                     "when": "editorTextFocus" },

shift +alt + down /up将复制你的代码

相关内容