google / google/google-java-format

Differences in imports order in IntelliJ and Eclipse.

オープン
#1,007 コメント 2 件 リアクション 1 件 担当者 0 名 GitHub で見る
主要言語
Java
スター
6.2k
フォーク
937
平均マージ
6分
マージ済み PR(30日)
3

説明

Using v1.18.1 plugins for Eclipse and IntelliJ, but there is difference in imports order for both IDEs.
Imports layouts for Eclipse:
![eclipse_import_layout](https://github.com/google/google-java-format/assets/29916082/09378a53-2b38-488f-968a-529da590c5fe)
Imports layouts for IntelliJ:
![idea_import_layout](https://github.com/google/google-java-format/assets/29916082/0d90c902-617b-48bd-af7a-89a21f1f894f)

Imports in IntelliJ:
```
import com.domain.sap.IF.helper.DocumentHelper;
import com.domain.sap.SapUtility;
import com.domain.sap.SyncDocument;
```

Imports in Eclipse:
```
import com.domain.sap.SapUtility;
import com.domain.sap.SyncDocument;
import com.domain.sap.IF.helper.DocumentHelper;
````

For me it looks like IntelliJ uses a Code Formatter also for Imports formatting and Eclipse uses it's own mechanism.
How to make it common?

コントリビューションガイド

コントリビューションガイドを開く

評価

この issue はまだ評価されていません。

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。