Navigating source code in RStudio IDE

When navigating a source code file in RStudio is it possible to use a single keystroke or keyboard shortcut to move to the next function definition? Is it possible to move the cursor up/down 5 or 10 lines at a time with a single keyboard shortcut? I know it is possible to use pageup and pagedown to move more than one line. I'm looking for some more options for navigating R code files in the IDE and couldn't find the shortcuts "Jump to next function" or "Move up 10 lines".

Try ctrl+up and ctrl+down (or cmd on Mac) for moving to the next/previous function (undocumented as far as I can tell).

1 Like

This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.

If you have a query related to it or one of the replies, start a new topic and refer back with a link.