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: | Generate Getters and Setters | ||
---|---|---|---|
Product: | php | Reporter: | zburnham |
Component: | Editor | Assignee: | Ondrej Brejla <obrejla> |
Status: | NEW --- | ||
Severity: | normal | ||
Priority: | P1 | ||
Version: | 7.2.1 | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | The Generate Getters and Setters dialog actually says "Remove underscore: ..." but it doesn't remove the score. |
Description
zburnham
2012-12-12 04:09:04 UTC
Created attachment 131475 [details]
The Generate Getters and Setters dialog actually says "Remove underscore: ..." but it doesn't remove the score.
The Generate Getters and Setters dialog actually says "Remove underscore: ..." but it doesn't remove the score.
Tested on Netbeans 7.3 stable Method naming style: Remove Underscore Result: underscores where not removed ex.: public function getStarted_at() Expected result: public function getStartedAt() Please, don't change version. It's the first version, when an issue occured. "Remove Underscore" works fust for leading underscore (many years ago someone used it for "private/protected" fields...). To don't generate get_foo(); from $_foo; It never worked for underscored inside a field name. So it's definitely an enhancement. But I understand you and I'll try to rewrite it to remove all underscores. Thanks. I need this new enhancement, always i use underscore into my vars . Thanks. I'm using Netbeans 8.2 fully updated and just right now I'm manually modifying every generated getter/setter, removing extra underscores :( |