[英]multiple key bindings in vscode (visual studio code) cursor right disabled after creation on new keybinding
我是 VScode 的新手,我添加了一個新的快捷方式來向右移動光標,因為右箭頭鍵迫使我移動我的手,現在右箭頭已禁用,我可以執行其他任務,例如將整個單詞向右移動作為快捷方式完全取代了右箭頭鍵,
我在這里找到了一個類似的帖子: Visual Studio Code - multiple keyboard shortcuts? 而且我已經修復了向右移動,但我不能用向上箭頭做同樣的事情,無論我設置什么鍵綁定,如果能夠添加這樣的移動快捷方式而不必影響當前的正確設置,那就太好了**這是我在 keybiding.jsonfile 上的當前代碼 - 任何人都可以建議在不破壞當前設置的情況下修復此代碼嗎? **
{
"key": "shift+alt+i",
"command": "-editor.action.insertCursorAtEndOfEachLineSelected",
"when": "editorTextFocus"
},
{
"key": "shift+alt+r",
"command": "cursorRight",
"when": "textInputFocus"
},
{`enter code here`
"key": "Right",
"command": "cursorRight"
}
{
"key": "Left",
"command": "cursorLeft"
}
{
"key": "right",
"command": "-cursorRight",
"when": "textInputFocus"
},
{
"key": "shift+alt+l",
"command": "cursorLeft",
"when": "textInputFocus"
},
{
"key": "left",
"command": "-cursorLeft",
"when": "textInputFocus"
}
我已經刪除了所有命令並將它們替換為這一切似乎都可以在此處輸入代碼
{
"key": "alt+r",
"command": "cursorRight",
"when": "textInputFocus"
},
{
"key": "Right",
"command": "cursorRight"
},
// down
{
"key": "alt+d",
"command": "cursorDown"
},
// UP
{
"key": "alt+u",
"command": "cursorUp"
},
// LEFT
{
"key": "alt+l",
"command": "cursorLeft",
},
{
"key": "Left",
"command": "cursorLeft"
},
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.