Adding backticks more easily

rmarkdown

#1

Is there a shortcut or addin for the RSudio IDE to wrap selected text with backticks `like this`?

When I select some text and enter a double quotation mark, the selected text will automatically be wrapped in two quotation marks "and". It would be fantastic to have this feature for backticks as well when writing markdown documents. Currently, the text will just disappear and be replaced with two backticks.

Rstudio Version 1.1.383
German Keyboard Layout


#2

One way to add backticks easily for inline code in markdown documents (which I just found out) is to install the remedy package: https://github.com/ThinkR-open/remedy

Then bind a shortcut to the backtick addin via Tools/Modify Keyboard Shortcuts and search for backtick.

Once you select text and hit your shortcut, it will be set in `backticks`.


#3

We've also implemented this in RStudio v1.2, which is currently available as a preview release. If you have a chance, give it a try and let us know if everything works as expected!