How to modify the behaviour of shortcut keybinding in RStudio



Currently in RStudio keybinding CTRL/CMD + SHIFT + B perform the following job

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?


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.