NetBeans 13 Java 编辑器 Doubleclick 实现更改
我刚刚将 NetBeans 从 12 升级到 13。
当我双击类名或变量名时,她只选择其中的一部分:
重构(Ctrl + R)仍然作品。
但如果你认为我所有的自定义类文件名中都有 _ ;不轻松地复制类名(Ctrl + C)对我来说是一件大事。
你知道怎么改回来吗?
I just upgraded my NetBeans from 12 to 13.
When i doubleclick a classname or variable name, she only selects part of it:
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?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我无法使用 NetBeans 13 重现您的问题,也无法在工具 > 下找到任何设置。选项>可能相关的编辑器。
但是,旧的 NetBeans 错误报告 Bug 239257 - 选择标识符考虑“_”(下划线) )作为分隔符描述了您的问题,并解释了如何复制它:
对于您的 NetBeans 13 安装,找到该文件org-netbeans-modules-editor-settings-CustomPreferences.xml
在我的例子中,该文件的路径位于我的 NetBeans 用户目录下,位于 >C:\Users\johndoe\AppData\Roaming\NetBeans\13\config\Editors\text\x-java\Preferences
要引发该问题(如果该问题不存在),请将以下行插入到该文件的
元素下,保存它,然后重新启动 NetBeans:<条目名称=“identifier-acceptor”remove=“true”/>
要防止出现此问题(这正是您想要做的),请从文件中删除同一行,保存它,然后重新启动 NetBeans。然后选择应该可以正常工作。
以下是我在第 6 行添加该条目以复制您的问题后 org-netbeans-modules-editor-settings-CustomPreferences.xml 实例的完整内容:
注意:
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:
For your NetBeans 13 installation, locate the file org-netbeans-modules-editor-settings-CustomPreferences.xml
In my case the path to that file was under my NetBeans user directory, in C:\Users\johndoe\AppData\Roaming\NetBeans\13\config\Editors\text\x-java\Preferences
Open that file in any text editor.
To provoke the problem if it doesn't exist, insert the following line into that file under the
<editor-preferences>
element, save it, then restart NetBeans:<entry name="identifier-acceptor" remove="true"/>
To prevent the problem, which is what you want to do, remove that same line from the file, save it, then restart NetBeans. Selection should then work correctly.
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:
Notes: