Format HTML forms

When ever I reformat a HTML with a form, WEBSTORM always places the on one line. For instance this code:

```

<form action="">
<label>Name:</label>
<input type="name" />
<button type="submit">Submit</button>
</form>

Is reformatted to:

```

<form action="">
<label>Name:</label> <input type="name" />
<button type="submit">Submit</button>
</form>

I am assuming it is using the wrap feature, but is there any way to configure to either ignore forms OR to not combine this elements?

2 comments
Comment actions Permalink

I'd suggest removing label from Inline elements: list in Settings | Editor | Code Style | HTML | Other - does it help?

0
Comment actions Permalink

Worked great thanks

0

Please sign in to leave a comment.