As far as I know, there is no such possibility.
But if your problem is to type #
in each line, then I can suggest there's two possible workarounds. Mind that these two are possible in Rstudio, and at least not in native R.
- You can write your multiline comments without
#
. Then select all these lines and use Ctrl + Shift + C to comment all these lines simultaneously.
- In editor, you can start the first line of your multiline comment by
#'
. Then, as you finish that line and continue to the next line by pressing Enter , #'
will automatically appear in the next line and so on, until you remove it manually after the very last line of your comment.
Hope this helps.
Edit:
I'm sorry for the repetition of same answer. I started typing before Mara posted, and didn't notice her post before publishing it. Sorry.