I have installed Beautify to use it for my ReactJS code.
However, it apparently does not properly beautify the HTML format in the file.
For example, it turns this:
Among all the options, which option should I use to fix this ?
I have installed Beautify to use it for my ReactJS code.
However, it apparently does not properly beautify the HTML format in the file.
For example, it turns this:
Among all the options, which option should I use to fix this ?
On
For those still struggling with this, there is also js-beautify's -X (--e4x) option which tells it to leave the XML content unchanged.
I used to have the same problem. Apparently beautify doesn't support JSX. I uninstalled and instead of it, I installed Prettier, it works great for me.
Hope I helped you.