簡體   English   中英

在創建新的鍵綁定后,vscode(Visual Studio 代碼)中的多個鍵綁定光標右被禁用

[英]multiple key bindings in vscode (visual studio code) cursor right disabled after creation on new keybinding

我是 VScode 的新手,我添加了一個新的快捷方式來向右移動光標,因為右箭頭鍵迫使我移動我的手,現在右箭頭已禁用,我可以執行其他任務,例如將整個單詞向右移動作為快捷方式完全取代了右箭頭鍵,

  1. 有人可以告訴我一個簡單的快捷方式,可以在每行代碼之后將光標向右移動,而不需要右箭頭,例如 print("hello world") cursor here
  2. 或者告訴我如何讓我的自定義快捷鍵序列和右箭頭鍵都起作用我還注意到將光標移動到行尾的默認鍵綁定(shift+alt+i)從未起作用。 先感謝您

我在這里找到了一個類似的帖子: 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.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM