visual-studio-code - 是否有 VS Code 快捷方式可以向上/向下移动/选择到下一个空行?

标签 visual-studio-code vscode-settings

我刚刚从 Sublime 过渡到 VS Code 并喜欢它。想知道是否有等效的组合或设置它们的方法,用于跳转/选择行块,向下/向上到下一个空行。这就是我在 ST3 中的样子:

{"keys": ["ctrl+shift+["], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["ctrl+shift+]"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},
{"keys": ["ctrl+{"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": false, "extend": true}},
{"keys": ["ctrl+}"], "command": "move", "args": {"by": "stops", "empty_line": true, "forward": true, "extend": true}},

最佳答案

The following plugin meets your requirments I believe
引自插件描述

Travel in a text editor by jumping over code "paragraphs", to the closest empty line, optionally selecting text along the way.

The following commands and corresponding default keybindings are provided:

block-travel.jumpUp: alt+up
block-travel.selectUp: alt+shift+up
block-travel.jumpDown: alt+down
block-travel.selectDown: alt+shift+down

关于visual-studio-code - 是否有 VS Code 快捷方式可以向上/向下移动/选择到下一个空行?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/45788119/

相关文章:

gulp - 尝试使用不基于根文件夹的 VSCode 运行 gulp 任务

linux - 如何从 Windows 上的 Linux 子系统打开 VS Code IDE?

javascript - Visual Studio Code 未在 Javascript 中执行错误检查

visual-studio-code - 配置 VSCode 包含路径

javascript - 如何在 VSCode 中突出显示全局变量?

visual-studio-code - Visual Studio Code : change angle brackets html formatting

visual-studio-code - 获取 Visual Studio Code 将无扩展名文件的语法高亮显示为 bash 脚本?

python - 如何将 requirements.txt 发送给没有 PyLint 等开发包的用户?

javascript - VS代码: [js] This constructor function may be converted to a class declaration

visual-studio-code - 针对项目的 VS Code 扩展建议