在Eclipse中使用Ctrl + Shift + F自動格式化JSP文件時,它嘗試將盡可能多的標記放在行上,然後標記不適合它會打破並將屬性放在下一行。編輯jsp文件時eclipse中的每個標記之後的新行
這是創建非常混亂的代碼,下面的例子。
<div class="type-text"><label for="echo">Project Name: </label> <s:textfield
id="projectName"
name="projectName"
value="Project Name"
>
</s:textfield></div>
有誰知道如何更好地格式化JSP文件?
看到這個答案:http://stackoverflow.com/questions/10298024/eclipse-html-editor-each-input-tag-on-the-new-line –
這是可能的,看到張貼在這裏: http://stackoverflow.com/questions/10298024/eclipse-html-editor-each-input-tag-on-the-new-line –