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"
      }
]
相关推荐
悟能不能悟4 小时前
目前流行的AI IDE都有哪些
ide·人工智能
2301_789015624 小时前
C++:set/multiset和map/multimap文档详细解析
c语言·开发语言·c++·vscode·排序算法·set·map
小鸡脚来咯4 小时前
软链接的作用和用途
java·ide·eclipse
emem.4 小时前
【超详细】VSCode连接GitHub全攻略:上传/克隆代码一步到位
ide·vscode·github
彭石榴5 小时前
github copilot学生认证教程,免费使用两年Copilot Pro!!(避免踩坑版)
vscode·github·copilot
Lion Long5 小时前
在 Windows 上快速搭建 VSCode 的 C++ 开发环境(基于 WSL)
linux·c++·windows·vscode·wsl
Nonoas14 小时前
动态代理:发布订阅的高级玩法
java·ide·intellij-idea
WHJ22620 小时前
记录解决jupyter打开闪退
ide·python·jupyter
mrsyf1 天前
Android Studio Otter 2(2025.2.2版本)安装和Gradle配置
android·ide·android studio
石马农汪1 天前
cursor如何打开多个文件夹不替换之前的文件夹
编辑器·cursor