Check out example codes for "prettier html formatting". It will help you in understanding the concepts better.

Code Example 1

"html.format.wrapAttributes": "force",
"html.format.wrapLineLength": 40,

Learn ReactJs, React Native from akashmittal.com