You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
make Eclipse and IntelliJ code formatting rules consistent, such that when you have auto-format-on-save turned on with those rules, it produces the same thing that mvn formatter:format + mvn impsort:sort does.
The text was updated successfully, but these errors were encountered:
I tried to configure IntelliJ in a way, that it formats code the same way as Eclipse with the imglib2 coding style does.
I learned this is impossible. First of all importing Eclipse formatter settings into IntelliJ doesn't work very well. Many of the settings are ignored. Second, there are some things, that the IntelliJ code formatter does always different than Eclipse. Most notably, Eclipse always adds a space character at the end of an empty javadoc line. IntelliJ always removes it. But there are other differences still I wasn't able to configure the Eclipse and IntelliJ formatter to indent loop labels the same way, etc...
These are minor differences but they remain. There is a simple solution: Use the eclipse formatter plugin for IntelliJ.
(mvn formatter:format and Eclipse produce the same result anyway)
IntelliJ stores the import sorting settings together with the code formatting. We should have an IntelliJ code formatter setting for the scijava coding style. Here is the IntelliJ formatter settings file for the imglib2 / mastodon coding style
From this discussion on zulip:
@ctrueden said:
The text was updated successfully, but these errors were encountered: