Skip to content

How to control wrapping of long types? #693

@singpolyma

Description

@singpolyma

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestwrappingIncorrect or undesirable wrapping

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions