Hi,
Programming for R (stats package) the user often wants to select a whole function (usually in order to execute it in R)
my fun <- function(param,..){ # your code }
cmd-shift-B will select the next-out level of brackets, and, if repeated, will eventually select the outer-most brackets. But to execute the function, one needs to select the whole of that first line of the function definition.
for me a macro works recorded as:
cmd-shift-B cmd-shift-arrow_left
Cheers, Hans