Skip to content

Formating of subsequent Velocity statements #6

@ser-drephs

Description

@ser-drephs

Thanks for the plugin, but I have one major issue with it. I'm new to Apache Velocity. So maybe the issue is my "codeing style".

I have the following snipped:

#parse("/templates/layout.vm")
#@mainLayout() 
#set( $heading = "New")
#set( $namePlaceholder = "Enter name" ) 
#set( $ectsPlaceholder = 0 ) 
#set( $responsibleSelection = "-" ) 
#set( $removed = "false") 
#set( $defaultResponsibleSelection = "-") 

<h1>$heading</h1>

If I format the html using VSCode formating I get this:

#parse("/templates/layout.vm")
#@mainLayout() #set( $heading = "New") #set( $namePlaceholder = "Enter name" ) #set(
$ectsPlaceholder = 0 ) #set( $responsibleSelection = "-" ) #set( $removed = "false") #set(
$defaultResponsibleSelection = "-")

<h1>$heading</h1>

With added variables and some conditions afterwards the code becomes unreadable. Could you fix that?

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