Presently, alt-2 checks the entire code for syntax errors etc
It would be handy, when I press alt-2 to check only the text I have selected because being told there is a mistake in another part of code, may not be useful to me at that time.
Perhaps the default could be to check selected code, if none is selected then check it all?