haunhp1 opened a new issue, #4633:
URL: https://github.com/apache/netbeans/issues/4633

   ### Apache NetBeans version
   
   Apache NetBeans 15 release candidate
   
   ### What happened
   
   I'm using v15 for PHP. It formats the source code automatically but doesn't 
affect on 1-line comment when the comment line has no white space at the 
beginning.
   For example:
   
   
![image](https://user-images.githubusercontent.com/23661521/190045102-59fc8e6e-00d1-4444-8827-1dc840834ce0.png)
   
   If I add a white space like this:
   
![image](https://user-images.githubusercontent.com/23661521/190045264-eb14faf0-df2a-416f-a640-fd2eef9beaed.png)
   
   It will look good when saving:
   
![image](https://user-images.githubusercontent.com/23661521/190045328-a5d5323b-a71b-4129-9cf5-08b7225b8914.png)
   
   The last comment line is still not good. The IDE doesn't format it. Why?
   
   ### How to reproduce
   
   Edit any PHP file with a few lines of source code.
   Or try this:
   
   class Tester {
   
       public function __construct() {
           //this comment line will look good
   // try to add a white space at the beginning of this line, it will look good 
once saved
   // but not this! Why?
       }
   
   }
   
   ### Did this work correctly in an earlier version?
   
   No / Don't know
   
   ### Operating System
   
   Microsoft Windows 10 Home Single Language x64, Version 10.0.19044 Build 
19044, 
   
   ### JDK
   
   Product Version: Apache NetBeans IDE 15, Java: 17.0.1; Java HotSpot(TM) 
64-Bit Server VM 17.0.1+12-LTS-39 Runtime: Java(TM) SE Runtime Environment 
17.0.1+12-LTS-39, System: Windows 10 version 10.0 running on amd64; Cp1252; 
en_US (nb)
   
   ### Apache NetBeans packaging
   
   Apache NetBeans provided installer
   
   ### Anything else
   
   _No response_
   
   ### Are you willing to submit a pull request?
   
   No
   
   ### Code of Conduct
   
   Yes


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

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

Reply via email to