How to modify the behaviour of shortcut keybinding in RStudio

rstudio

#1

Currently in RStudio keybinding CTRL/CMD + SHIFT + B perform the following job
devtools::install().

How can I change it to have this behaviour:

devtools::install(build_vignettes = TRUE)

If not, is it possible to create the entirely new keybinding for it?


#2

You could likely do this with an add-in, but if that seems like more work than it’s worth, I would suggest a custom snippet (such as dib) , which you could just type into the console. Slightly slower than a keyboard shortcut, but faster than typing out the full command.