Reputation: 141
The VS Code in my Mac pc is automatically breaking the customer HTML tags in new lines. This is making the length of the whole code much bigger. For example, I want below code in one line
<FormInput name="propertyTax" width="43%" height="7%" placeholder="3,200"></FormInput>
But the VS code is showing as below.
<FormInput
name="propertyTax"
width="43%"
height="7%"
placeholder="3,200">
</FormInput>
I tried change wordwrap from settings with no luck.
Please help me.
Upvotes: 7
Views: 6371
Reputation: 11
If you're using Prettier formatter. Go to Settings and search for this: prettier.printWidth
and change from default 80
to 300
.
Upvotes: 1
Reputation: 103135
You can try switching off any formatters that you have in VSCOde. Go to Code > Preferences > Settings
and search for "Format" and try switching off "Format on Save" and any other format option that you have.
Upvotes: 1