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.

Bug 200828 - Code Formatting Blank Lines After/Before Field
Summary: Code Formatting Blank Lines After/Before Field
Status: RESOLVED FIXED
Alias: None
Product: php
Classification: Unclassified
Component: Formatting & Indentation (show other bugs)
Version: 7.0
Hardware: All All
: P2 normal (vote)
Assignee: Petr Pisl
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-08-10 11:47 UTC by madflow
Modified: 2011-08-11 08:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description madflow 2011-08-10 11:47:35 UTC
The code formatting options for PHP syntax do not work for class members.

Options->Editor->Formatting

Language: PHP
Category: Blank Lines

1. The option "Before Field" does only apply to the first declared field
2. "After Field" seems to be completely ignored.

So 

class Test
{
    protected $field1;

    protected $field2;

    protected $field3;
}

becomes after formatting:

class Test
{
    protected $field1;
    protected $field2;
    protected $field3;
}


even if there is a value > 0 in "After Field"

I tested this in the Java Editor and it seems to work fine with Java Classes.
Comment 1 madflow 2011-08-11 08:40:13 UTC
I just realized that this is fixed by an update to 7.01

Great, Thanks!!!!