Depending on your syntax, one of the the Selection » Expand Selection To … can do it.
For XML, I've found that Expand Selection to Tag (repeatedly) works. In Java source code, Expand Selection to Scope works. And for any formatted source code, Expand Selection to Indentation should work.