shortcut for multi line comment in R code example Example 1: r comment # for 1 line of code Example 2: multiple comment code in R Ctrl + Shift + C