Highlighting sections in R Studio


Is there any option in R studio to highlight the selected section in a way similar to the option available on Spyder?

I’m trying to get used to the conventions of posting topics here…Excuse me if something is not in order!



No, there isn’t currently a way to do this. You can however define sections and use them for navigation, expand/collapse code folding, etc. More here:


Thanks, Jonathan! The link is helpful though!