To extend selection, press &shortcut:EditorSelectWord;. Each time you press &shortcut:EditorSelectWord;, the selection extends to the enclosing logical parts of code.

If you have selected too much, press &shortcut:EditorUnSelectWord; to shrink the selection in the reverse order.