rkp*_*333 8 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}},
Run Code Online (Sandbox Code Playgroud)
Mar*_*ark 18
这是稳定版 v1.54,没有扩展。 prevBlankLine并且nextBlankLine to值已添加到cursorMove命令中。请参阅https://github.com/microsoft/vscode/pull/115578。
{
"key": "ctrl+shift+[", // whatever keybinding you want
"command": "cursorMove",
"args": {
"to": "prevBlankLine",
"select": true // false is the default if omitted
},
"when": "editorTextFocus"
},
{
"key": "ctrl+shift+]",
"command": "cursorMove",
"args": {
"to": "nextBlankLine",
"select": true // false is the default if omitted
},
"when": "editorTextFocus"
},
Run Code Online (Sandbox Code Playgroud)
引自插件描述
通过跳过代码“段落”在文本编辑器中移动到最近的空行,可选择沿途选择文本。
提供了以下命令和相应的默认键绑定:
block-travel.jumpUp: alt+up
block-travel.selectUp: alt+shift+up
block-travel.jumpDown: alt+down
block-travel.selectDown: alt+shift+down
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
2249 次 |
| 最近记录: |