I have just started learning React Native. I am using Visual Studio Code for editing. Whenever I save my file it is inserting spaces in my JSX code. This reduces the readabi
Or you could also rename the file changing its extension from .js to .jsx and VSCode will understand that the file is React.
I managed to resolve this by manually changing the language of the file to javascriptreact
instead of javascript
.
Screenshot:
I had this problem and I solved by making js-css-html formatter extension disable and closing the vs code and restart