Automatic Code folding?

Hi! I am developing RShiny apps, currently it has grown to a 12K code lines.. and sometimes when i try to edit code by replacing code text with ctrl+f, all the folded code lines is all expanded again.. I would like to know if theres an alternative to automatically fold all the code that are in each triangle marks.. it have been time consuming for me just to click the triangle fold manually one by one..

Hi @VanGC . Based on the article below, it looks like Alt + O will collapse all .

1 Like

Loved that Shortcut! Thanks for sharing @scottyd22

Perhaps you can find ways to split the code into sections that live in separate R files, and source() them into your runnable main file. This would probably help to organise your work to facilitate finding code of interest.

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.