Datagrip 2019.2 - Reformat Code doing nothing

Hi,

 

After updating to Datagrip 2019.2 the reformat code function is not doing anything and pretends the code is already formatted.

I changed the code style in the preferences and made sure the data source and the project are using said code style, but no success there.

Any idea?

Thanks!

1

@T Ducrot,

Could you provide any examples, screenshots, your code style settings, sql file dialect?

0
Avatar
Permanently deleted user

Hi,

I am using BigQuery using Simba https://blog.jetbrains.com/datagrip/2018/07/10/using-bigquery-from-intellij-based-ide/.

I used Generic SQL as advised but then, the code formatting wasn't applied or recognized.

Switching to PostgreSQL Dialect in the Driver seemed to resolve the issue with the same SQL code style.

Attached is the code style setting.

Cheers,

Thomas

 

 

1

Hello Tomas. Formatting in the Generic dialect is not possible, because the grammar of this dialect is not defined. You can select another dialect if you want to format your code.

2

请先登录再写评论。