R - Insert Comments for .r & .rmd
-
[Super] + [Shift] + [C] on Linux
-
[Ctrl] + [Shift] + [C] on Windows
This shortcut can be used both for:
- To comment your R code: It adds # at the beginning of each line
- For R Markdown: It will add
<!-- and -->
around text
To uncomment: apply [Super] + [Shift] + [C] Again!
Feedback
Was this page helpful?
Glad to hear it! Please tell us how we can improve.
Sorry to hear that. Please tell us how we can improve.