=========================================== RStudio (Mac) keyboard shortcuts (filtered) =========================================== First published at 1/31/2019 on https://defkey.com/rstudio-mac-shortcuts RStudio is an integrated development environment (IDE) for R programming language. R is used for graphics and statistical calculations. Distributed as free and open-source, RStudio was first released on February 2011. Console ------- Ctrl + 2 Move cursor to Console Ctrl + L Clear console Cmd + Right arrow Move cursor to end of line Cmd + Up arrow Popup command history Source ------ Ctrl + . Goto File/Function Cmd + Shift + Alt + N New document (Chrome only) Cmd + Option + W Close active document (Chrome only) Cmd + Shift + K Compile PDF (TeX and Sweave) Cmd + Option + I Insert chunk (Sweave and Knitr) Cmd + Shift + R Insert code section Cmd + Enter Run current line/selection Option + Enter Run current line/selection (retain cursor position) Cmd + Option + T Run the current code section Cmd + Shift + Option + L Unfold Selected Cmd + Option + O Fold All Ctrl + F12 Next tab Cmd + Shift + Alt + P Show Diagnostics Option + Up arrow / Down arrow Move Lines Up/Down Editing (Console and Source) ---------------------------- Option + - Insert assignment operator Session ------- Cmd + Shift + F10 Restart R Session Last modified on (UTC): Monday, November 11, 2019 Defkey © All rights reserved.