Format Velocity

Answered

I have a file with the extension .vm
Code without automatic formatting:

<tns:Date>${dateTool.format('dd.MM.yyyy', ${dateTool.toDate("yyyy-MM-dd'T'HH:mm:ss.SSSXXX", $Date_PPTData)})}</tns:Date>

Code with automatic formatting:

<tns:Date>${dateTool.format('dd.MM.yyyy', ${dateTool.toDate(
"yyyy-MM-dd'T'HH:mm:ss.SSSXXX", $Date_DecisionWithdrawalLandPlotData)})}</tns:Date>

I need the date not to change during automatic formatting.

0
1 comment

It seems there is no way to customize wrapping for Velocity code. Feel free to submit a new request at https://youtrack.jetbrains.com/issues/IDEA.

As a workaround, you can try increasing the value of "Hard wrap at" under Settings/Preferences| Code Style | General.

0

Please sign in to leave a comment.