首页 > 其他分享 >vscode设置快捷键控制光标移动(替代上下左右)

vscode设置快捷键控制光标移动(替代上下左右)

时间:2023-01-31 09:01:08浏览次数:50  
标签:&& vscode when textInputFocus command key alt 快捷键 光标

参考文档:https://blog.csdn.net/weixin_42158546/article/details/112463296

设置双快捷键控制光标上下左右移动

 

我的设置json文件如下

 

 

 

 

 追加配置文件:

    {
        "key": "alt+k",
        "command": "cursorUp",
        "when": "textInputFocus"
      },
      {
        "key": "up",
        "command": "cursorUp",
        "when": "textInputFocus"
      },
      {
        "key": "alt+k",
        "command": "selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
      },
      {
        "key": "up",
        "command": "selectPrevSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
      },
      {
        "key": "alt+j",
        "command": "cursorDown",
        "when": "textInputFocus"
      },
      {
        "key": "down",
        "command": "cursorDown",
        "when": "textInputFocus"
      },
      {
        "key": "alt+j",
        "command": "selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
      },
      {
        "key": "down",
        "command": "-selectNextSuggestion",
        "when": "suggestWidgetMultipleSuggestions && suggestWidgetVisible && textInputFocus"
      },
      {
        "key": "alt+l",
        "command": "cursorRight",
        "when": "textInputFocus"
      },
      {
        "key": "right",
        "command": "cursorRight",
        "when": "textInputFocus"
      },
      {
        "key": "alt+h",
        "command": "cursorLeft",
        "when": "textInputFocus"
      },
      {
        "key": "left",
        "command": "cursorLeft",
        "when": "textInputFocus"
      },
      {
        "key": "alt+i",
        "command": "cursorEnd",
        "when": "textInputFocus"
      },
      {
        "key": "end",
        "command": "cursorEnd",
        "when": "textInputFocus"
      },
      {
        "key": "alt+y",
        "command": "cursorHome",
        "when": "textInputFocus"
      },
      {
        "key": "home",
        "command": "cursorHome",
        "when": "textInputFocus"
      }

 

标签:&&,vscode,when,textInputFocus,command,key,alt,快捷键,光标
From: https://www.cnblogs.com/y593216/p/17077741.html

相关文章

  • vsCode 博客园插件使用:管理本地博客
    前言使用博客园插件在vsCode中管理本地博客。第一次使用,摸索了个教程出来。新建-发布博客第一步:登录、配置本地博客文件夹第二步:新建本地博客方式一:直接在本地博客......
  • CAD中怎么旋转光标?CAD旋转光标的方法步骤
    CAD中怎么旋转光标?浩辰CAD软件作为一款拥有自主核心技术的CAD平台软件产品,提供了CAD旋转光标命令,本节课程就和小编一起来了解一下浩辰CAD软件中CAD旋转光标的方法步骤吧!CA......
  • VUE安装教程+VScode配置
    【手把手教安装】VUE安装教程+VScode配置!!!  原文链接:https://blog.csdn.net/momohhhhh/article/details/126319350含泪整理Vue安装教程因为换了新电脑很多软件要重装,所以......
  • 富文本编辑器 quill.js 开发(二): 光标和选区
    术语表首先我们需要知道一些术语,才能更好地理解,如果您已经了解,可以跳过这一段锚点(anchor)锚指的是一个选区的起始点(不同于HTML中的锚点链接)。当我们使用鼠标......
  • [oeasy]python0066_控制序列_光标位置设置_ESC_逃逸字符_CSI
    光标位置回忆上次内容上次讲了三引号的输出三引号中回车和引号都会被原样输出​​\​​还是需要从​​\\​​转义黑暗森林快被摸排清了还有哪个转义序列没研究过......
  • [oeasy]python0066_控制序列_光标位置设置_ESC_逃逸字符_CSI
    光标位置回忆上次内容上次讲了三引号的输出三引号中回车和引号都会被原样输出\还是需要从\\转义黑暗森林快被摸排清了还有哪个转义序列没研究过......
  • vsCode 常用快捷键
    多光标编辑选择块:Shift+directionArrow添加多个光标:Alt+Click行操作复制粘贴行:Shift+Alt+Down/UpArrow移动行:Alt+Down/UpArrow删除行:Ctrl+Shift+K在整个项目中......
  • vscode快捷键编辑
    进行搜索命令。1、有提示的时候向下选择的命令:selectNextSuggestion2、有提示的时候向上选择的命令:selectPrevSuggestion3、光标上移,下移,左移,有移:cursorUp,cursorDown,cur......
  • 电脑截图方法快捷键等介绍
    截图功能1、当您电脑打开了微信,按键盘Alt+A会出现截屏2、当您电脑打开了QQ,按键盘Crtl+Alt+A会出现截屏3、当您电脑打开了钉钉,按键盘Crtl+Shift+A会出现......
  • idea 常用快捷键
    ”Alt+“系列  Alt+/快速补全代码 (必须记住,也是最常用的)  Alt+Enter快速提示完成,在代码可能存在语法问题时,IDEA会提示使用该快捷键可以快速......