[R-SIG-Mac] Block commenting - I found it
Carl Witthoft
carl at witthoft.com
Thu Feb 2 16:47:31 CET 2012
Many thanks for this explanation.
And, yes, I feel like an idiot for not having investigated the Edit Menu.
Carl
On 2/2/12 9:42 AM, Hans-Jörg Bibiko wrote:
>
> On 2 Feb 2012, at 15:29, Carl Witthoft wrote:
>
>> A little hacking later:
>>
>> CMD-' will apply "#" to each line,
>> CMD-OPT-' will remove them.
>>
>> But I'm still interested in knowing what other undocumented keystrokes are out there.
>
> Do you wonder why a selection will be wrapped by `` after pressing ` well then I can help you.
>
> If you select something in the R script editor or in the RConsole and you will then press ( or { or [ or " or ' or ` then the selection will be wrapped by these characters; of course for parentheses by the corresponding closing variant.
>
> Since ⌥⌘+` is not assigned to any command this short-cut will simply wrap the selection by ``.
>
> Cheers,
> --Hans
--
Sent from my Cray XK6
"Pendeo-navem mei anguillae plena est."
More information about the R-SIG-Mac
mailing list