title: Hide R code chunks from outline view in RStudio
body: <p>When writing .rmd or .Rnw reports in RStudio, the outline view shows both code chunks and regular sections. While code chunks appear italic, regular sections do not. However, writing large reports with many similar named chunks will lead to a really bulky outline view with many similar labels.</p>
  
  <p><a href="https://i.stack.imgur.com/2GTOc.png" rel="noreferrer"><img src="https://i.stack.imgur.com/2GTOc.png" alt="enter image description here"></a></p>
  
  <p>Is there currently a way to turn one of them off? Either regular sections or the code chunks.</p>