Skip to content

Auto indentation when formatting #8

@vicary

Description

@vicary

Given the following VTL snippet,

#set($foo = $util.map.copyAndRemoveAllKeys($bar, ["a", "b", "c", "d", "e", "f"]))

I'd like to be automatically formatted into the following style,

#set(
  $foo = $util.map.copyAndRemoveAllKeys(
    $bar,
    ["a", "b", "c", "d", "e", "f"]
  )
)

Not sure how viable is this idea without a proper AST tokenization toolset for VTL though.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions