Keyboard shortcut to delete the current rmd chunk in RStudio

Viewed 768

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

1 Answers

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.

Related