过去 20 年我一直在使用的代码编辑器(codewright)允许您设置“选择模式”。设置后,所有键盘光标移动都会扩展选择。在 VS Code 中,您可以通过按住 shift 键(例如,Shift 向下箭头)来扩展选择范围,但我正在寻找一种无需使用 shift 键的方法。
我已经编写了一个主要用于它的扩展,但是如果我可以为keybindings.json. 例如,我想改变
{ "key": "shift+down", "command": "cursorDownSelect",
"when": "editorTextFocus" },
Run Code Online (Sandbox Code Playgroud)
像
{ "key": "down", "command": "cursorDownSelect",
"when": "editorTextFocus || extensionSelectionMode" },
{ "key": "down", "command": "cursorDown",
"when": "editorTextFocus" },
Run Code Online (Sandbox Code Playgroud)
有没有办法从扩展中添加这样的条件?