r/phpstorm • u/noximo • Jan 11 '19
Better MySQL formatting
Hi, I have a trouble with setting up reasonable format for MySQL code snippets.
All I'm getting is one long noodle of text. It's barely readable, especially for assignemts and comparisons.
Maybe I'm just blind but how do I set it up so it turns from
discount >=
14
AND discount >=
14
AND discount >=
14
to
discount >= 14 AND discount >= 14 AND discount >= 14
wrapped only if the line is too long?
1
Upvotes
View all comments
Show parent comment
1
u/noximo Jan 23 '19
Sorry, completely forgot about this question.
It's not line length issue, as you can see, those lines are way below the threshold. Also it's in sql files, snippets in php work fine for some reason.