Any way to convert single line of HTML into multiline? Sam Hulick 创建于 2015年05月19日 16:31 Is there any quick key command to convert code like this:<div><p>Hello.</p></div>to this:<div> <p> Hello. </p></div>
Ctrl+Alt+L.But you need to remove 'p' from 'Don't break if inline content' list in Settings/Editor/Code Style/HTML, Other. And probably play with other formatting options
Sorry, what command is ctrl+alt+L? I'm on Mac and I also have customized my keymap.
Code | Reformat Code
Formattings rules can be configured at "Settings (Preferences on Mac) | Editor | Code Style | HTML"
Thanks. After changing code formatting rules, the best I could get was:
<div>
<p>Text here.</p>
</div>
I couldn't get it to put the text on a separate line from the P tag.
Thanks!
Anybody knows how to do it the other way around? (multiline to single line)