Simple extension that adds the RStudio keybindings for the R assignment arrow operator (<-)
and the dplyr pipe operator (%>%), plus Quarto PDF rendering for Jupyter notebooks.
Features
Press Alt+- to insert <- (with spaces) when editing R code
Press Ctrl+Shift+M (Cmd+Shift+M) to insert %>% (with spaces) when editing R code
Matches RStudio's default keybindings
Only activates when editing R code
Quick PDF rendering button in Jupyter notebook toolbar (requires Quarto installation)
Installation
Install from the VS Code Marketplace or:
Press Ctrl+P in VS Code
Type ext install vscode-r-arrow
Note: To use the PDF rendering feature, you need to have Quarto installed on your system.
Usage
For R operators:
Open any R file (.R, .Rmd, .ipynb)
Press Alt+- for <-
Press Ctrl+Shift+M (Cmd+Shift+M) for %>%
For Quarto PDF rendering:
Open any Jupyter notebook (.ipynb)
Click the PDF icon in the notebook toolbar (next to Run All/Clear All)
Wait for the rendering to complete - a success message will appear when done