[ 
https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Junichi Yamamoto closed NETBEANS-1466.
--------------------------------------
    Resolution: Not A Bug

I don't think that it is a bug.

I suppose that it is intension because "//" is at the top of the line.

We often do that when we would like to comment out multiple lines, right?

e.g. 
{code:php}
//    public function &javascriptEnabled(): bool
//    {
//        return $this->javaScriptEnabled;
//    }
{code}

> Alignment of comments on a line
> -------------------------------
>
>                 Key: NETBEANS-1466
>                 URL: https://issues.apache.org/jira/browse/NETBEANS-1466
>             Project: NetBeans
>          Issue Type: Bug
>          Components: php - Formatting & Indentation
>    Affects Versions: 9.0
>         Environment: Product Version: Apache NetBeans IDE Dev (Build 
> incubator-netbeans-linux-870-on-20181013)
> Java: 10.0.1; Java HotSpot(TM) 64-Bit Server VM 10.0.1+10
> Runtime: Java(TM) SE Runtime Environment 10.0.1+10
> System: Windows 10 version 10.0 running on amd64; Cp1252; fr_FR (nb)
> PHP 7.2
> xampp
>            Reporter: Sébastien Villemain
>            Priority: Trivial
>         Attachments: Capture.PNG
>
>
> Comments on a line do not align automatically.
>   
> {code}
>     public function &javascriptEnabled(): bool
>     {
> // Example : Do not align after formatting.
>  // Example : Functional alignment after formatting.
>         return $this->javaScriptEnabled;
>     }
> {code}
> Formatting only works if there is a space before the comment.
>  Result after formatting:
> {code:php}
>     public function &javascriptEnabled(): bool
>     {
> // Example : Do not align after formatting.
>         // Example : Functional alignment after formatting.
>         return $this->javaScriptEnabled;
>     }
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscr...@netbeans.apache.org
For additional commands, e-mail: commits-h...@netbeans.apache.org

For further information about the NetBeans mailing lists, visit:
https://cwiki.apache.org/confluence/display/NETBEANS/Mailing+lists

Reply via email to