You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@flink.apache.org by Aljoscha Krettek <al...@apache.org> on 2021/01/05 09:59:09 UTC

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

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

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

Posted by Till Rohrmann <tr...@apache.org>.
This is very helpful. Thanks a lot Aljoscha!

Cheers,
Till

On Tue, Jan 5, 2021 at 10:59 AM Aljoscha Krettek <al...@apache.org>
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
>