当前位置:网站首页>Vscode double shortcut keys up, down, left and right

Vscode double shortcut keys up, down, left and right

2022-06-13 08:35:00 webQiang99

//  Put the key binding in this file to override the default value auto[]
[
  {
    
      "key": "alt+i",
      "command": "cursorUp",
      "when": "textInputFocus"
  },
  {
    
      "key": "up",
      "command": "cursorUp",
      "when": "textInputFocus"
  },
  {
    
      "key": "alt+k",
      "command": "cursorDown",
      "when": "textInputFocus"
  },
  {
    
      "key": "down",
      "command": "cursorDown",
      "when": "textInputFocus"
  },
  {
    
      "key": "alt+j",
      "command": "cursorLeft",
      "when": "textInputFocus"
  },
  {
    
      "key": "left",
      "command": "cursorLeft",
      "when": "textInputFocus"
  },
  {
    
      "key": "alt+l",
      "command": "cursorRight",
      "when": "textInputFocus"
  },
  {
    
      "key": "right",
      "command": "cursorRight",
      "when": "textInputFocus"
  },
  {
    
      "key": "down",
      "command": "list.focusDown",
      "when": "listFocus && !inputFocus"
  },
  {
    
      "key": "down",
      "command": "selectNextSuggestion",
      "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },
  {
    
      "key": "alt+k",
      "command": "selectNextSuggestion",
      "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },
  {
    
      "key": "up",
      "command": "selectPrevSuggestion",
      "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },
  {
    
      "key": "alt+i",
      "command": "selectPrevSuggestion",
      "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
  },
  {
    
    "key": "alt+o",
    "command": "cursorEnd",
    "when": "textInputFocus"
  },
  {
    
    "key": "end",
    "command": "cursorEnd",
    "when": "textInputFocus"
  },

  {
    
    "key": "alt+u",
    "command": "cursorHome",
    "when": "textInputFocus"
  },
  {
    
    "key": "home",
    "command": "cursorHome",
    "when": "textInputFocus"
  }
]

After setting, the up, down, left and right keys on the keyboard can move up, down, left and right ,alt+i,k,j,l You can also move up, down, left and right ,alt+u You can position the cursor at the beginning of a line ,alt+o You can position the cursor at the end of the line

原网站

版权声明
本文为[webQiang99]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202270539565801.html