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.
When I double-click in a _programming_ tool I expcet that it understand identifiers, not more generic words. Right now a double-click considers '_' as a word boundry, so many C and C++ variables and identifiers become harder to select. This doesn't affect Java as much, even though '_' is a valid Java identifier constituent because '_' is rarely used in Java identifiers.
I cannot reproduce the behaviour you are describing. I tried double-click in the following situations: /** * dsfsdf_dsafd_sdhbashdb_sdkad */ public void one_two(){ int local_int_variable; } and it seems to work correctly. It means i.e. whole identifier local_int_variable is selected upon double-click... What JDK and build are you using?
Mato, I've seen this too but I'm unable to reproduce it. What happened was that I've experienced the symptoms that Ivan was describing. I don't know however what caused this to happen. I guess that the SettingsNames.IDENTIFIER_ACCEPTOR setting somehow went wrong because IIRC (Ivan please correct me if I'w wrong) the Alt+J which selects/deselects the word under the cursor also stopped at "_". We need to find out the way to reproduce. Ivan are you able to reproduce this consistently?
Ah, this could be specific to the 'cpp' editor. Let me look into that.
In java it's accomplished by settingsMap.put(SettingsNames.IDENTIFIER_ACCEPTOR, JavaSettingsDefaults.defaultIdentifierAcceptor); in JavaSettingsInitializer.
Ivan, was the problem local to cpp editor? I will close this for now please reopen if the problem persists for for non-cpp mime types as well.
Transferring to cpp
Just tried this with NB5.0 and it works as it should. It must have been fixed in NB.
Yup, it seems to work for both Java and C/C++.