[jira] [Commented] (NETBEANS-1466) Alignment of comments on a line
[ https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16663786#comment-16663786 ] Christian Lenz commented on NETBEANS-1466: -- But offtopic. Only to make it clear, what the "problem" causes. > 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 (): 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 (): 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
[jira] [Commented] (NETBEANS-1466) Alignment of comments on a line
[ https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16663784#comment-16663784 ] Christian Lenz commented on NETBEANS-1466: -- Unfortunately this happens with the HTML, it will indent the code again and this is a pain in the ass. And the other problem, which I want to try to fix it here: https://issues.apache.org/jira/browse/NETBEANS-436 is exact the problem, that the comments starts on the first column of a line, but It should like this: {code} // public function foo(): bool // { // return true; // } public function bar: bool { return false; } {code} But yes, this is an other topic. > 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 (): 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 (): 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
[jira] [Commented] (NETBEANS-1466) Alignment of comments on a line
[ https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16663785#comment-16663785 ] Christian Lenz commented on NETBEANS-1466: -- With this solution, there is no need to realign it again. > 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 (): 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 (): 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
[jira] [Commented] (NETBEANS-1466) Alignment of comments on a line
[ https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16663775#comment-16663775 ] Junichi Yamamoto commented on NETBEANS-1466: As I wrote above, it's written intentionally. I don't think users would like to indent like the following: {code:php} //public function foo(): bool //{ //return true; //} public function bar: bool { return false; } {code} {code:php} //public function foo(): bool //{ //return true; //} public function bar: bool { return false; } {code} So we should not do anything. > 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 (): 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 (): 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
[jira] [Commented] (NETBEANS-1466) Alignment of comments on a line
[ https://issues.apache.org/jira/browse/NETBEANS-1466?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel=16663728#comment-16663728 ] Christian Lenz commented on NETBEANS-1466: -- Than it should turn into a improvement. The problem is not to select all and comment it, it is to comment some lines and the right alignment should stay or should realignment to the right onw. > 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 (): 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 (): 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