Search code examples
rrstudiofolding

Folding all functions in a R-Studio Script


Basically I've written quite an amount of functions in one R-Script. To create a better overview and that i don't have to scroll too much, i usually press the arrow on the left side of a function definition, which folds it. This can be quite annoying to do for over 30 functions as they continiously "unfold" when i run them. What i mean with the folding can be seen in this picture

enter image description here

Does someone know a keyboard shortcut for this problem?


Solution

  • Not a direct solution to the folding problem, but an easier way to navigating massive scripts is with the drop-down list in the bottom of the source editor. It lists all defined functions in the active window.

    enter image description here