In this article, We will fix a HTML format issue in react using VS Code. I will show how to do it, and just follow the steps clearly.
For more updates please do subscribe via email:
During my journey in exploring about react. I have face an issue html format when I hit save [CTRL + S].
I do research on how to fixed this but I am straggling to find a solution.
Solution 1
To fix this issue, Just go to the settings.
Under the User tab, Select a Text Editor then Formatting.
Then after this, You can try to save.
Solution 2
After executing solution 1, if not working then just download this extension in your VS code.
Then after just try to save the JS file of you react file.
If this is not working!
Solution 3
Just add this node from Prettier – Code formatter to settings.json
You can file the settings.json in the vs code here!
Just click the settings.json and it is automatically open the file.
Then add here.
Happy Learning..
Thank you for visiting my blog site. Hoping you learn more here. please feel free to comment and suggest if there is need to enhance and update. thank you.