Keyboard shortcut for inserting roxygen #' comment start

前端 未结 3 688
遥遥无期
遥遥无期 2020-12-15 05:44

This question might be over-answered but I could not find one. Basically I am using RStudio and the keyboard shortcut cmd + shift + c for in

3条回答
  •  情歌与酒
    2020-12-15 06:16

    The absolute simplest answer is in the comments on the addins answer above and deserves its own billing (with attribution):

    Rstudio does have column selection, to get multiple cursors alt + mouse to select, or ctrl + alt and the arrow keys, then keys move forward and back by words/lines work as expected. – Peter Apr 16 '16 at 23:55

    [ETA: On Mac, ctrl + option + arrow keys or option + mouse.]

    @Peter nice. in that case you could just make a chunk of cursors at the beginning of the line and and type in #' . I doubt roxygen comments are used enough to warrant a dedicated keyboard shortcut, but it wouldn't hurt to have I guess – rawr Apr 17 '16 at 1:26

提交回复
热议问题