移动到 RStudio 中的匹配大括号

Moving to matching braces in RStudio

我在 RStudio 中编写了几个 R 函数。这些函数很长。在 RStudio 中是否有键盘快捷键可以从左大括号跳到右大括号,这样我就可以更有效地 运行 这些函数而无需滚动脚本文件?

可以使用 Ctrl+p 导航到结束 brace/parenthesis。

您还可以在菜单栏->工具->修改键盘快捷键中查看键盘快捷键。

或来自https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts

Jump to Matching Brace/Paren Ctrl+P

在 RStudio v1.4 preview there is matching parentheses, braces, and brackets in a series of colors. This is customizable in the theme CSS. It can also be turned on/off dynamically per document through the Code -> Rainbow parentheses option. See here.