Use the keyboard shortcut Ctrl + } to indent the selected lines this is for Rstudio on my windows computer