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"
      }
]
相关推荐
千码君20161 小时前
提词器项目V1.0功能分析
ide·macos·xcode
2501_915106321 小时前
Swift 4开发环境设置教程:xCode安装与Playground入门
ide·vscode·ios·objective-c·个人开发·swift·敏捷流程
一支黑色の铅笔2 小时前
VSCode 克隆Git项目
ide·git·vscode
小毛驴8503 小时前
Jupyter Notebook 安装步骤
ide·python·jupyter
蓝白云15 小时前
告别繁琐配置!TreeATE Copilot 插件 VS Code 完整使用教程
vscode·copilot
蓝桉柒718 小时前
下载idea,用idea输入一个程序
java·ide·intellij-idea
一叶龙洲1 天前
Ubuntu24.04 Cursor导入vscode配置
vscode·编辑器
程序员良辰1 天前
Eclipse Memory Analyzer(MAT)入门教程:从生成 Heap Dump 到定位 Java 内存问题
java·ide·eclipse·tomcat·idea
pjj198541 天前
Hadoop-python中使用大数据1
java·ide·eclipse
2601_962294612 天前
Python开发工具哪个好?Python开发工具推荐
ide·文本编辑器·游戏开发·编程语言·python开发工具