dcs*_*san 6 navigation visual-studio-code
如何在 Visual Studio Code 中一次导航一个段落或代码块?
在其他编辑中称为“块旅行”......
我似乎也无法让匹配的括号导航工作。
http://vim.wikia.com/wiki/Jumping_to_the_start_and_end_of_a_code_block Visual Studio Code 的代码块结构突出显示扩展
我在 GitHub 上发现了这个问题,其中讨论了按段落/代码块进行光标导航。要启用此功能,您需要执行以下操作:
在 VSCode 中打开键盘快捷键列表(在 Windows 上为 Ctrl+K Ctrl+S)。
单击窗格右上角的“打开键盘快捷键 (JSON)”图标(看起来像带有箭头的页面)。
将以下行复制到出现的文件的方括号之间:
{
"key": "ctrl+down",
"command": "cursorMove",
"when": "editorTextFocus",
"args": {
"to": "nextBlankLine",
"by": "wrappedLine"
}
},
{
"key": "ctrl+up",
"command": "cursorMove",
"when": "editorTextFocus",
"args": {
"to": "prevBlankLine",
"by": "wrappedLine"
}
}
Run Code Online (Sandbox Code Playgroud)
保存文件。
您可以通过更改后面的内容将它们分配给您想要的任何键绑定"key":。
| 归档时间: |
|
| 查看次数: |
1614 次 |
| 最近记录: |