Sos
Sos

Reputation: 1949

Editing keyboard shortcut to produce code chunk in R studio

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

Answers (1)

MrNobody33
MrNobody33

Reputation: 6483

Go to ToolsModify Keyboard Shortcuts in RStudio, you will get something like this:

enter image description here

Then filter by chunk, put your desired shortcut for that languages and then Apply:

enter image description here

Upvotes: 1

Related Questions