Hi,
I noticed this too while writing scripts. The indentation engine
does not expect methods outside of class bodies and will likely need
some updates.
best regards,
michael
On 13.01.25 19:17, Kenneth Fogel wrote:
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