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"
      }
]
相关推荐
睡觉早点5 小时前
IntelliJ IDEA下载安装过程(含Java环境搭建)
java·ide·jdk·maven·intellij-idea
草酸艾司西酞普兰5 小时前
idea中使用Qoder插件
java·ide·intellij-idea
芽芽_05 小时前
idea无法打开:Cannot collect JVM options
java·ide·intellij-idea
Flying_Fish_roe5 小时前
IntelliJ IDEA 2025 版本与其他历史版本的全面专业对比分析
java·ide·intellij-idea
朝阳398 小时前
vscode 实用插件【Md Editor】即时渲染编辑 .md 文件(带工具条)
vscode
Rendy_8 小时前
github copilot vscode插件 没有模型
vscode·github·copilot
2301_7930698210 小时前
VS-CODE 里的github copilot 不支持自己配置模型api
vscode
晚风予卿云月11 小时前
Linux编辑器—vim的使用
linux·编辑器·vim
DeadPool loves Star11 小时前
VSCode关闭Shell内联建议
ide·vscode·编辑器
超哥归来11 小时前
关闭vscode中git的行历史提示
ide·git·vscode·编辑器