google / google/google-java-format

Differences in imports order in IntelliJ and Eclipse.

Aperta
#1,007 2 commenti 1 reazione 0 assegnatari Vedi su GitHub
Lingua principale
Java
Stelle
6.2k
Fork
937
Merge medio
6m
PR unite (30g)
3

Descrizione

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?

Guida per i contributori

Apri la guida per i contributori

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.