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.
Summary: | Extend behaviour of CamelCase to underscore entities as well | ||
---|---|---|---|
Product: | editor | Reporter: | normadize |
Component: | Navigation | Assignee: | Jan Becicka <jbecicka> |
Status: | CLOSED INVALID | ||
Severity: | normal | CC: | markiewb |
Priority: | P3 | ||
Version: | 7.0 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | Example of underscore caret navigation |
Description
normadize
2011-03-31 00:44:12 UTC
Created attachment 130202 [details]
Example of underscore caret navigation
NetBeans IDE 8.0.2 (Build 201411181905) In the following example the places where underscores are recognised as word separators are the VAR_FOO_BAR variable name and the BOO_HOO part of the method name. Interestingly "FOO_BAR" string is treated as one word. <pre> private void test_foo_bar_BOO_HOO() { String var_foo_bar = "foo_bar"; var_foo_bar += "foo_bar"; String VAR_FOO_BAR = "FOO_BAR"; VAR_FOO_BAR += "FOO_BAR"; } </pre> Another bit of rationale behind this request. I personally tend to write test method names using snake case rather than camel case because they are often long and: testMethodNameWrittenLikeThisIsReallyHardToRead whereas: test_method_name_like_this_even_though_very_long_reads_like_a_breeze Being able to jump between words when using snake case would be very helpful for me here. I would appreciate this option as well. Many of the programs I work on were developed with an _ as the standard way of separating words, it would make things much easier, without harming any other users. Should be fairly easy to implement. the underscore notation is used extensively in Drupal programming. Netbeans is gaining a reputation in this community, but it could be hindered if people find this frustrating. This old bug may not be relevant anymore. If you can still reproduce it in 8.2 development builds please reopen this issue. Thanks for your cooperation, NetBeans IDE 8.2 Release Boss Still valid in 8.2 dev Product Version: NetBeans IDE Dev (Build 201607100002) I will close it, because it will handled now at the JIRA board: https://issues.apache.org/jira/browse/NETBEANS-397. Please discuss it there for further information. Maybe as a subticket or so. |