mwip / beautifyR

RStudio addin for formatting Rmarkdown tables
GNU General Public License v3.0
112 stars 6 forks source link

Beautify Comment == RStudio built-in Shortcut "Reflow Comment"? #13

Closed SchmidtPaul closed 2 years ago

SchmidtPaul commented 2 years ago

Someone on Twitter pointed out that RStudio has a built-in shortcut that seems to do the same thing (?) as Beautify Comment. He says it's Ctrl + Shift + / but for me it is Ctrl + Shift + #. Nevertheless, it does work 😮

image https://twitter.com/SchmidtPaul1989/status/1565600086742138881

mwip commented 2 years ago

Indeed it is similar but not the same. Especially with your recent examples I found the built-in struggles more with inline code. Its advantage is that it properly recognizes the user-specified code margin (which is currently hardcoded to 80 in beautifyR).

Admittedly, I developed the feature and was later pointed to the built-in by a colleague, too. :sweat_smile:

Thanks for spreading the word though. Really appreciate the tweet :relaxed: