4

When writing an RMarkdown file in RStudio, I'd like to be able to insert common text snippets using a keyboard shortcut. On the one hand, there are code snippets in RStudio, but they don't seem to work for Markdown. So I'd settle for any other way to create a custom keyboard shortcut for inserting a pre-specified piece of custom text, while I wait for that bug to be fixed.

Community
  • 1
  • 1
Nathan
  • 1,451
  • 1
  • 15
  • 28

1 Answers1

4

Turns out you can use code snippets in Markdown in RStudio. Although they don't seem to work at first, you can force snippet expansion using Shift+Tab, as described here. The RStudio team says they'll add that to the official documentation in the future.

Nathan
  • 1,451
  • 1
  • 15
  • 28