yx749
yx749

Reputation: 41

Keyboard shortcut to delete the current rmd chunk in RStudio

There are keyboard shortcuts for inserting and running chunks. Is there a keyboard shortcut to delete the current chunk in R Markdown?

Upvotes: 4

Views: 4025

Answers (1)

Macosso
Macosso

Reputation: 1439

I am not sure if such a feature exists. As of now, the trick I use to do it is folding the chunk and deleting the folded chunk.

Enter image description here

You can also visit Shortcut: Select all in current R Markdown code chunk to view how to select the whole chunk, as I believe this may help.

Upvotes: 1

Related Questions