[PSA] Configure "Save Actions" only for Java files

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[PSA] Configure "Save Actions" only for Java files

Aljoscha Krettek-2
If you're using "Save Actions" to auto-format your Java code, as
recommended in [1], you should add a regex in the settings to make sure
that this only formats Java code. Otherwise you will get weird results
when IntelliJ also formats XML, Markdown or Scala files for you.

Best,
Aljoscha

[1]
https://ci.apache.org/projects/flink/flink-docs-master/flinkDev/ide_setup.html#code-formatting
Reply | Threaded
Open this post in threaded view
|

Re: [PSA] Configure "Save Actions" only for Java files

Till Rohrmann
This is very helpful. Thanks a lot Aljoscha!

Cheers,
Till

On Tue, Jan 5, 2021 at 10:59 AM Aljoscha Krettek <[hidden email]>
wrote:

> If you're using "Save Actions" to auto-format your Java code, as
> recommended in [1], you should add a regex in the settings to make sure
> that this only formats Java code. Otherwise you will get weird results
> when IntelliJ also formats XML, Markdown or Scala files for you.
>
> Best,
> Aljoscha
>
> [1]
>
> https://ci.apache.org/projects/flink/flink-docs-master/flinkDev/ide_setup.html#code-formatting
>