Indent Size

The number of indentChar values to comprise a single indentation. By default this is set to 2 meaning a single indentation will be 2 whitespace characters.

How to use Tabs?

If you’re heathen who prefers Tabs, then you will need to set the indentChar to \t and infer the size limit here.


💡

0

Below is we have set the indentSize to 4 - Notice how the indentation increases by 2 after formatting.

<header>
<nav>
<ul class="foo">
<li>bar</li>
<li>baz</li>
</ul>
</nav>
</header>
<header>
    <nav>
        <ul class="foo">
            <li>bar</li>
            <li>baz</li>
        </ul>
    </nav>
</header>