Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Moving to matching braces in RStudio

Tags:

I have several R functions which I am scripting in RStudio. These functions are quite long. Is there a keyboard shortcut to skip from an opening brace to a closing brace in RStudio so I can more efficiently run these functions without having to scroll the script file?

like image 203
pomodoro Avatar asked Nov 27 '18 04:11

pomodoro


1 Answers

One can use Ctrl+p to navigate to the closing brace/parenthesis.

You can also check the keyboard shortcuts in the Menu bar -> Tools -> Modify Keyboard Shortcuts.

Or from https://support.rstudio.com/hc/en-us/articles/200711853-Keyboard-Shortcuts

Jump to Matching Brace/Paren Ctrl+P

like image 152
chinsoon12 Avatar answered Oct 16 '22 16:10

chinsoon12