haxe-formatter icon indicating copy to clipboard operation
haxe-formatter copied to clipboard

How to control wrapping of long types?

Open singpolyma opened this issue 8 months ago • 0 comments

For example defaults produce this in my code:

   private var chatStateHandlers:Array<(String, String, Null<String>,                                                                                                        
         UserState) -> Void> = []; 

This is pretty gross looking, just splitting a part of the lambda arguments to a new line, and double indenting it for some reason also.

Ideally this would format as:

   private var chatStateHandlers:
       Array<(String, String, Null<String>, UserState) -> Void> = []; 

or similar

singpolyma avatar May 06 '25 18:05 singpolyma