Reformatting JSP code
Answered
I would like to reformat a JSP code with this code:
<div class="form-group">
<label for="testteest" class="col-sm-4 control-label"
style="text-align: left"><fmt:message
key="ttttttt"/></label>
<div class="col-sm-4">
<input type="text" class="form-control " id="rrrrr"
placeholder="" readonly>
</div>
</div>
(note that label tag span on two line, fmt:message is on two line and first line is used from previous tag label)
To:
<div class="form-group">
<label for="testtest" class="col-sm-4 control-label" style="text-align: left">
<fmt:message key="ttttt"/></label>
<div class="col-sm-4">
<input type="text" class="form-control " id="rrrrr" placeholder="" readonly>
</div>
</div>
In Editor > Code Style > JSP
I set right margin (Columns) to an high value and wrap on typing = no ,
but using Reformat Code nothing happen.
Any suggestion, i think i'm missing something
Thank you for helping
IntelliJ IDEA 2016.3.2
Build #IU-163.10154.41, built on December 21, 2016
Licensed to xxxxxx
Subscription is active until xxxxxxx
JRE: 1.8.0_112-release-408-b6 x86
JVM: OpenJDK Server VM by JetBrains s.r.o
Please sign in to leave a comment.
Current formatting options do not allow to unwrap existing code. Feature request is welcome at https://youtrack.jetbrains.com/issues/IDEA.
Thank you for the quick response
Feature created
https://youtrack.jetbrains.com/issue/IDEA-166459
I find a temporary solution it could be useful for other user , you could reformat code with
http://www.danstools.com/javascript-beautify/
Work fine for my jsp (jsp + javascript)