Visitar URL original
Explicit Kotlin import layout · dev4117/java-code-styles@66a3fc3 · GitHub
Skip to content

Commit 66a3fc3

Browse files
committed
Explicit Kotlin import layout
Specify an explicit import layout instead of relying on the Kotlin Official default. The Kotlin Official style uses `ij_kotlin_imports_layout = *,java.**,javax.**,kotlin.**,^`. There isn't a reason why these packages should be treated differently. The new explicit import layout changes it to `ij_kotlin_imports_layout = *`, which is for example used by ktfmt, too.
1 parent 63e0030 commit 66a3fc3

1 file changed

Lines changed: 5 additions & 0 deletions

File tree

‎configs/codestyles/SquareAndroid.xml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -99,6 +99,11 @@
9999
<option name="JD_PRESERVE_LINE_FEEDS" value="true" />
100100
</JavaCodeStyleSettings>
101101
<JetCodeStyleSettings>
102+
<option name="PACKAGES_IMPORT_LAYOUT">
103+
<value>
104+
<package name="" alias="false" withSubpackages="true" />
105+
</value>
106+
</option>
102107
<option name="PACKAGES_TO_USE_STAR_IMPORTS">
103108
<value />
104109
</option>

0 commit comments

Comments
 (0)