javanetbeanseditordouble-clicknetbeans-13

NetBeans 13 Java Editor Doubleclick implementation change


I just upgraded my NetBeans from 12 to 13.

When i doubleclick a classname or variable name, she only selects part of it:

enter image description here

Refactor (Ctrl + R) still works.
But if you think all my custom class file names have _ in it; not copying classnames (Ctrl + C) at ease is a big deal for me.
Do you know how to change it back?


Solution

  • I was unable to reproduce your problem with NetBeans 13, nor could I find any setting under Tools > Options > Editor that might be relevant.

    However, an old NetBeans Bug Report Bug 239257 - Select identifier considers "_" (underscore) as a separator described your problem, and explained how to replicate it:

    Here's the complete content of my instance of org-netbeans-modules-editor-settings-CustomPreferences.xml after I added that entry on line 6 to replicate your problem:

    <?xml version="1.0" encoding="UTF-8"?>
    <!DOCTYPE editor-preferences PUBLIC "-//NetBeans//DTD Editor Preferences 1.0//EN" "http://www.netbeans.org/dtds/EditorPreferences-1_0.dtd">
    <editor-preferences>
        <entry javaType="java.lang.Boolean" name="enable-indent" xml:space="preserve"><value><![CDATA[true]]></value></entry>
        <entry javaType="java.lang.String" name="importGroupsOrder" xml:space="preserve"><value><![CDATA[*]]></value></entry>
        <entry name="identifier-acceptor" remove="true"/>
        <entry name="code-folding-collapse-innerclass" remove="true"/>
        <entry name="code-folding-collapse-javadoc" remove="true"/>
        <entry name="code-folding-collapse-method" remove="true"/>
        <entry name="pair-characters-completion" remove="true"/>
        <entry name="show-deprecated-members" remove="true"/>
    </editor-preferences>
    

    Notes: