VSCode 注释后光标快速定位下一行

VSCode默认用 Ctrl + / 注释一行时,光标停留在该行中。下面介绍如何注释后,光标会自动移动到下一行。

1.【View】 ->【Extensions】->【查找并安装Multi-command 扩展】

2.【File 】 -> 【Preferences 】->【Keyboard Shortcuts】(macOS :Code ,Preferences ,Keyboard Shortcuts)

3.【在搜索栏里面搜索 Open Keyboard Shortcuts (JSON)】->【去到别的文件下,打开Keybinding.json】

如果Keybinding是空的,则自己随便设置一个快捷键,去到别的文件下,按下快捷键打开keybindings.json

4.在keybindings.json文件下添加以下代码

json 复制代码
[
    {
        "key": "ctrl+/",
        "command": "extension.multiCommand.execute",
        "args": {
          "sequence": [
            "editor.action.commentLine",
            "cursorDown"
          ]
        },
        "when": "editorTextFocus"
      }
]
相关推荐
大志哥1234 分钟前
IntelliJ IDEA父子工程中导入公网远程备份项目到新目录
java·ide·intellij-idea
梁萌10 分钟前
idea使用AI插件(CodeGeeX)
java·ide·ai·intellij-idea·插件·codegeex
wqfhenanxc1 小时前
vscode/cursor 远程Linux基础命令
linux·ide·vscode
Lv11770082 小时前
Visual Studio中的常量和只读变量
ide·笔记·c#·visual studio
Balding Curry2 小时前
vscode快速添加插件的3种方式
ide·vscode·编辑器
yyovoll2 小时前
循环知识点介绍 -蓝桥杯
jvm·ide·java-ee
Clarence Liu3 小时前
MacOS 在Trae IDE中构建现代C++开发环境:从新手到高效的完整指南
c++·ide·macos
木楚4 小时前
在idea中构建传统ssm框架的步骤和方式
java·ide·intellij-idea
蜡笔大新7984 小时前
IO流的认识(2)
java·ide·intellij-idea
spencer_tseng5 小时前
Eclipse JDT Core for Java Code Formatter
java·ide·eclipse