Question

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:

enter image description here

How to turn off that behaviour?

Was it helpful?

Solution

Take a look at your settings under Code Style, Html, then under the Other tab:

enter image description here

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.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top