zentol commented on code in PR #20204: URL: https://github.com/apache/flink/pull/20204#discussion_r916758185
########## docs/content/docs/flinkDev/ide_setup.md: ########## @@ -149,6 +149,12 @@ It is recommended to automatically format your code by applying the following se 8. Under "Formatting Actions", select "Optimize imports" and "Reformat file". 9. Under "File Path Inclusions", add an entry for `.*\.java` and `.*\.scala` to avoid formatting other file types. +For IntelliJ IDEA version > 2021.2: + +6. Go to "Settings" → "Tools" → "Actions on Save". +7. Under "Formatting Actions", select "Optimize imports" and "Reformat file". +8. From the "All file types list" next to "Reformat code", select Java and Scala. Review Comment: AFAICT the `Copyright Profile` doesn't work anymore; doesn't look like it was moved, maybe it was just superceded by file templates (which is what I use). For scala spotless takes care of license headers, which we could also enabled for java. The rest should be fine I think. -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@flink.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org