编程快捷键设置1-vue

2022-05-29  本文已影响0人  我叫杨毅
[
  //格式化
  {
    "key": "ctrl+alt+l",
    "command": "editor.action.format"
  },
  //重复插入选区或当前行
  {
    "key": "ctrl+d",
    "command": "editor.action.duplicate",
    "override": true
  },
  //光标向左
  {
    "key": "alt+j",
    "command": "cursorLeft",
    "override": true
  },
  //光标向下
  {
    "key": "alt+n",
    "command": "cursorDown",
    "override": true
  },
  //光标向上
  {
    "key": "alt+m",
    "command": "cursorUp",
    "override": true
  },
  //光标向右
  {
    "key": "alt+k",
    "command": "cursorRight",
    "override": true
  },
  //选至软行首(连续按依次切换自动换行的行首、缩进后的行首、真行首)
  {
    "key": "ctrl+left",
    "command": "cursorHomeSelect",
    "override": true
  },
  //选至软行尾(连续按依次切换自动换行的行尾、真行尾)
  {
    "key": "ctrl+right",
    "command": "cursorEndSelect",
    "override": true
  },
  //显示/隐藏大纲
  {
    "key": "ctrl+w",
    "command": "editor.action.triggerOutline",
    "override": true
  },
  //光标到软行首(连续按依次切换自动换行的行首、缩进后的行首、真行首)
  {
    "key": "alt+e",
    "command": "cursorHome"
  },
  //光标到软行尾(连续按依次切换自动换行的行尾、真行尾)
  {
    "key": "alt+r",
    "command": "cursorEnd"
  },
  //光标向左一个驼峰单词
  {
    "key": "alt+u",
    "command": "cursorWordPartLeft"
  },
  //光标向右一个驼峰单词
  {
    "key": "alt+i",
    "command": "cursorWordPartRight"
  }
]

上一篇下一篇

猜你喜欢

热点阅读