How to format binary expressions on a single line?

Answered

A colleage suggested I should try DataGrip as an alternative to Sql Prompt, but so far I've been having a hard time getting adjusted, mostly because of the formatting. My main gripe is as follows:

I have a pretty simple query with a WHERE clause containing a few segments:

Can somebody pleae tell me how I can get both parts of the binary expressions to be on a single line?!? 

It shouldn't be so hard to get it to look like this:

But for some reason it DataGrip keeps putting the two values on separate lines. The only formatting option I've found that does anything to the formatting of these expressions is this one, but that just involves the indentation, but they remain on separate lines.

 

Any help would be appreciated.

0
3 comments

Hello,

Please attach information from “Help | About" (click on Copy and paste data here).

0

Not entirely sure how that helps, but this is what it says:

 

DataGrip 2023.2.3
Build #DB-232.10203.8, built on October 24, 2023
Licensed to ….
Subscription is active until December 12, 2023.
Evaluation purpose only.
Runtime version: 17.0.8.1+7-b1000.32 amd64
VM: OpenJDK 64-Bit Server VM by JetBrains s.r.o.
Windows 11.0
GC: G1 Young Generation, G1 Old Generation
Memory: 4096M
Cores: 32
Registry:
   ide.experimental.ui=true

Non-Bundled Plugins:
   Docker (232.10203.2)

0

I needed to check your IDE version and configuration. I still couldn't reproduce the issue on my side. Is it possible to share your code style scheme?

0

Please sign in to leave a comment.