Reputation: 4603
When i format document, instead of keeping original tabbing structure:
<div class="topbar">
<div class="topbar-wrapper">
<div class="js-topbar-dialog-corral">
<div class="topbar-dialog siteSwitcher-dialog dno">
</div>
</div>
</div>
</div>
IDEA breaks it:
How to turn off that behaviour?
Upvotes: 9
Views: 2236
Reputation: 16130
Take a look at your settings under Code Style, Html, then under the Other tab:
You should check the Do not indent children of:
entry. You may want to play with these things until you get the style that you want. If it still isn't working, then maybe your document isn't xhtml compliant -- that is, it may be unbalanced, which although legal html, makes it difficult for Idea to format.
Upvotes: 10