21
This is what I do in JavaScript and PHP:
va{Vy
va{ to visually select the the code block,V to turn the selection from character-wise to line-wise,y to yankIf you are too deep and va{ only selects a portion of your function you can do more a{ until you select what you want.