Skip to content

Syntax aware formatting #3

@aheze

Description

@aheze

Currently when you select a chunk of code that contains parameters nested inside, formatting is weird:

Memberwise init generated by Xcode

This is because Multiliner splits parameters by commas , — this includes commas inside nested inits.

/// The text inside the braces.
let contentsString = text[openingContentIndex ..< closingContentIndex]
let contents = contentsString
.components(separatedBy: ",")

Possibly a split using Regex?

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions