I just made a plugin for selecting code blocks (functions).
Maybe it will solve your "problem"
You can find it here: viewtopic.php?f=33&t=6662
kfury77 wrote:Neat plugin! It would be good to have the option to remove ALL empty lines. At the moment it only deletes double or more empty lines.
Aivars wrote:Try/except is the best way to do it at this time.
Hans Meiser wrote:Any chance to get this as an in-build command?