You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
# Setup -----------------------------------------------------------------------# UI ----#### Server ####
I think the specific rules are:
A comment ending in 4+ dashes (----)
A comment surrounded by 4+ hashes on both sides #### Title ####
In RStudio, these structural comments are then exposed in the document outline and are foldable.
RStudio doesn't differentiate between these headings as having any kind of hierarchy, but it'd be a helpful and welcome addition if they could. I'd personally advocate for the above examples being level-1, level-3 and level-2 headings (respectively), but I'd be open to any kind of rule. Another option would be to assume similar heading styles are at the same level and any change in heading style indicates a sub-section.
The VSCode outline does not support sections, sub sections etc in a way that makes it easy to navigate a long script like the Rstudio IDE does. Would really love having those sections/subsections including indentations like it's in the Rstudio
RStudio support comment sections, e.g.
I think the specific rules are:
----
)#### Title ####
In RStudio, these structural comments are then exposed in the document outline and are foldable.
RStudio doesn't differentiate between these headings as having any kind of hierarchy, but it'd be a helpful and welcome addition if they could. I'd personally advocate for the above examples being level-1, level-3 and level-2 headings (respectively), but I'd be open to any kind of rule. Another option would be to assume similar heading styles are at the same level and any change in heading style indicates a sub-section.
This issue was also mentioned in #1427:
The text was updated successfully, but these errors were encountered: