Is there a keyboard shortcut in Rstudio to insert inline R code in RMarkDown documents?
ctr + alt + i is inserting a new code chunk. Similiar to that, it would be nice to have a keyboard shortcut to insert r
(inline R code).
I checked Tools/Modify Keyboard Shortcuts in Rstudio but I can't find any helpful command there.
Also, browsing cheatsheets and documentations didn't help me either.
One solution could be defining a code snippet.
5. Click Save and you are done.
Typing inr
followed by Shift+tab should insert the inline r code snippet.
Note: I could not control the cursor position for some reason, It would be ideal to position cursor before the last back tick.
Another solution could be writing a small Addin. See this RStudio Addins for more info
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With