google / google/google-java-format

Differences in imports order in IntelliJ and Eclipse.

Ouverte
#1,007 2 commentaires 1 réaction 0 personnes assignées Voir sur GitHub
Langage dominant
Java
Étoiles
6.2k
Forks
937
Merge moyen
6 min
PR mergées (30 j)
3

Description

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?

Guide de contribution

Ouvrir le guide de contribution

Évaluation

Cette issue n'a pas encore été évaluée.

Recevez les nouvelles issues par e-mail

Un résumé court des issues GitHub adaptées aux débutants.