Forgot to mention that I am using NetBeans 24 and Java 23 on a Windows 11 
system.

-----Original Message-----
From: Kenneth Fogel <kfo...@dawsoncollege.qc.ca.INVALID> 
Sent: January 13, 2025 1:18 PM
To: dev@netbeans.apache.org
Subject: Formatting Source Code

This is a minor issue and not necessarily a bug to be reported. When I create a 
file using the classless approach such as:

void main() {
    println("Mooses rule!");
}

It will run with the --enable-preview VM option. Great!

Unfortunately, all that  Source -> Formatting does is add a blank line at the 
top of the file and nothing more. I assume it is looking for something it can 
identify as a class otherwise it does not format the file.

Ken



---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscr...@netbeans.apache.org
For additional commands, e-mail: dev-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