This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
Now, if the caret is inside a method, you can select identifier -> expresion -> statement -> method body including braces -> the whole method BUT WITHOUT javadoc -> the whole class BUT WITHOUT javadoc -> the whole file. IMHO it should look like: identifier -> expresion -> statement -> the whole row -> all rows of method body -> method body including braces -> the whole method WITHOUT javadoc -> the whole method WITH javadoc -> the whole class WITHOUT javadoc -> the whole class WITH javadoc -> the whole file. Moreover if you select whole method the selection should start at beginning of the first line and end at tail of the last line. Now it starts at the modifier or possibly the return type of the method. The same suggestions as for methods except javadoc are valid for if, for, while, ... statements.
Changing to enhancement.
Agreed with Mato that it IS a defect in functionality. Changing back to defect.
Hmm, now I have found that it is as designed behaviour, so this is probably not defect. http://ui.netbeans.org/docs/hi/promoD/smartSelection.html Changing back to enhancement, raising priority...
The documentation seems to be out of date (see shortcut Ctrl+Alt-A) and especialy the Detailed Specification section would deserve improvements. But if you insist it is not a defect I am fine with that. Hopefuly this will be honour in the next release. I have found some other issues/inconsistences: * inside method in case of following line int a = 1; you select identifier -> expresion -> statement. But in case of following line return null; you select identifier -> statement. * field declaration private static int a; you select the whole statement instead of identifier -> statement or in case the caret is on some modifier then you should select modifier -> all modifiers -> statement
IMHO most of your requested use-cases can be solved by http://netbeans.org/bugzilla/show_bug.cgi?id=215552 Please vote there.