Skip to content

Custom case formatter and preserving char casingΒ #11

@olivernybroe

Description

@olivernybroe

I have a use case where I want to format a string away from camel_case etc. but not remove the casing of each word.

E.g. If someone wrote this_is_Kotlin, I can change it to this is Kotlin.

Current solution is "this_is_Kotlin".splitToWords().joinToString(" "), however not able to do it with the custom case formatter, or at least haven't figured out how.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions