[R-SIG-Mac] Shortcut to apply comment character to a block of code in editor?
Hans-Jörg Bibiko
bibiko at eva.mpg.de
Thu Feb 2 15:37:44 CET 2012
On 2 Feb 2012, at 15:22, Carl Witthoft wrote:
> Hi,
> Someone claimed in this StackOverflow thread http://stackoverflow.com/questions/9107695/r-comment-out-block-of-code that the sequence "CMD-OPT-`" would comment the selected block. What it does, on my machine, is to place the "`" at the start and end of the selection, which of course just makes a mess.
Hi Carl,
please have look at main menu > Edit for the short-cuts for "Comment-Out" and "Uncomment".
commenting out a selection or current line: ⌘+'
uncommenting a selection or line: ⌥⌘+'
I think there was a confusion of a backtick ` and a '
Cheers,
--Hans
More information about the R-SIG-Mac
mailing list