Forgot to mention that I am using NetBeans 24 and Java 23 on a Windows 11 system.
-----Original Message----- From: Kenneth Fogel <[email protected]> Sent: January 13, 2025 1:18 PM To: [email protected] 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: [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
