How to Change PHPStorm Default Spacing

If you look at the above image in between the <tr> and <th> and in between the <tr> and <td> there is 4 spaces automatically assigned by the IDE.
I would like to change this spacing to support 2 spaces, so that the HTML5 lines up like this
<tr>
<th>
<th>
</tr>
<tr>
<td>
<td>
</tr>
Thanks
Please sign in to leave a comment.
Hi there,
Set it up at Code Style for appropriate language.
In your case it will be "File | Settings | Editor | Code Style | HTML"
Also pay attention if you have "Detect and use existing file indents for editing" enabled at "File | Settings | Editor | Code Style" -- it may conflict with your new settings (may still use detected indents) .. so either disable that option or close and re-open the file (or whole project).