admin管理员组文章数量:1122832
While customizing VSCode's keyboard shortcuts, somehow I removed the shortcut for cut
. Now I don't know what shortcut it is.
I assigned ctrl+x
to editor.action.clipboardCutAction
, cut
, and default:cut
, but still I can't cut a text with ctrl+x
. When I select a text and press ctrl+x
, it removes the text, but the text is not in the clipboard
Also, in the edit
menu, there's no shortcut in front of the cut
. (copy
and paste
have their default shortcuts.)
What command is the cut
in VSCode?
While customizing VSCode's keyboard shortcuts, somehow I removed the shortcut for cut
. Now I don't know what shortcut it is.
I assigned ctrl+x
to editor.action.clipboardCutAction
, cut
, and default:cut
, but still I can't cut a text with ctrl+x
. When I select a text and press ctrl+x
, it removes the text, but the text is not in the clipboard
Also, in the edit
menu, there's no shortcut in front of the cut
. (copy
and paste
have their default shortcuts.)
What command is the cut
in VSCode?
1 Answer
Reset to default 0Thanks to the comment of @topsail, I've found the issue. I opened the command palette and entered Developer: Toggle Keyboard Shortcuts Troubleshooting
. It showed me that ctrl+x
is invoking default:cut
command. The File -> Preferences -> Keyboard Shortcuts
listed its source
as user
. I removed that, and a cut
command (all lowercase) again with source=user
.
Now ctrl+x
invokes Cut
(with capital C
) which cuts the text correctly.
I'm not sure where those default:cut
and cut
commands came from. Maybe when I upgraded from a very old VSCode version? Because I wasn't using VSCode in a while, and just upgraded it.
本文标签: visual studio codeAssign keyboard shortcut to cutStack Overflow
版权声明:本文标题:visual studio code - Assign keyboard shortcut to `cut` - Stack Overflow 内容由网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:http://www.betaflare.com/web/1736283960a1927141.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。
cut
, to check that, you can select your text and call the commandcut
via the command palette (I just tried, and the text is well copied on the clipboard). To remap the keybind, you can investigate like @topsail wrote to check if the command you defined is called when you pressctrl+x
. – vimchun Commented yesterday