Somewhere in the crazy amount of settings that IntelliJ has there is something that I really dislike. It transforms this elegant TSX code:
return (
<header className="flex items-center justify-between divide-x-2">
<div/>
<b>Name</b>
<b>Model</b>
<b>Capacity</b>
</header>
);
into something ugly:
return (<header className="flex items-center justify-between divide-x-2">
<div/>
<b>Name</b>
<b>Model</b>
<b>Capacity</b>
</header>);
So my question is: how can I prevent IntelliJ, or WebStorm (as it’s the same settings anyway), to format this TSX/JSX within parenthesis?
NOTE: I’m not using Prettier, nor any plugin of the sort.
NOTE: My file is a
.tsx
file.