title: Is there a way of highlighting an entire code block loop in R, particularly RStudio?
body: <p>I'm using RStudio 1.4.1106 for MacOS.</p>
  <p>I'm continuing with writing my package functions. Some of them are quite long and involve branching methods depending on the nature of the input data. The branching involves if loops, and there are sub-if loops as well.</p>
  <p>I comment the close brackets so I can back track to the start line of the loop (I don't use line numbers because I am frequently modifying code and the line numbers change). My current method to verify I have the correct loop selected is to go to the left of the close bracket and then identify the open bracket by the fact it is highlighted.</p>
  <p>Is there a method of highlighting an entire loop code block? In particular, this would make it easier for me to comment out an entire block of code without worrying I have commented out too much or too little.</p>