Reputation:
WebStorm auto-formats my js file perfectly.
However, there is a situation I want to exclude some code from being auto-formatted, like anything between <pre><code>
and </code></pre>
. Auto-format introduces new white spaces. Normally it's not a problem. However, I want to preserve the white spaces between my <pre><code>
and </code></pre>
tags.
Upvotes: 1
Views: 84
Reputation: 165353
Settings/Preferences | Editor | Code Style
HTML | Other
Keep white spaces inside
listUpvotes: 2