Reputation: 1949
I'm using Rmd in RStudio to edit in different languages, including Python, bash and R. I am wondering if there is a way to edit the "insert code chunk" option and/or its keyboard shortcut.
I would like to have a shortcut to insert a Python code chunk, another for bash, and another for R code chunks. Is this possible?
For reference, this is how you insert a new code chunk in RStudio.
Upvotes: 0
Views: 127
Reputation: 6483
Go to Tools → Modify Keyboard Shortcuts in RStudio, you will get something like this:
Then filter by chunk
, put your desired shortcut for that languages and then Apply:
Upvotes: 1