EN
VS Code - breaking up HTML tags in JSX on save
1 answers
1 points
VS Code keeps breaking up HTML tags in JSX on save, do you have any ideas how to fix it?
My code after saving React app:
xxxxxxxxxx
1
import './App.css';
2
3
function App() {
4
return ( <
5
div >
6
<
7
/div></div >
8
);
9
}
10
11
export default App;
1 answer
3 points
Beautify extension may cause some issues with Prettier formatter.
Try to add the code below in settings.json:
xxxxxxxxxx
1
"beautify.ignore": [
2
"**/*.js",
3
"**/*.jsx"
4
]
Where to find settings.json file:
1. Go to File -> Preferences -> Settings,
2. Search for "beautify ignore",
3. Click Edit in settings.json
0 commentsShow commentsAdd comment