我刚刚从 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/