KT-37950 Add io.ktor packages to 'Packages to use * import' list
- Ktor code style [here](https://ktor.io/quickstart/code-style.html) suggests to use star imports for Ktor packages - Absence of it in the default code style for Kotlin results in some inconveniences during auto-import and autocompletion (see the issue) - Automatic * import should mitigate the issue, since the first autocompleted item from the proper package should import the whole package, and then no further auto-import would be required for the next completions - KT-37950 Fixed
This commit is contained in:
committed by
Roman Golyshev
parent
17a9d93a4f
commit
8726d3dc4e
+1
@@ -80,6 +80,7 @@ public class KotlinCodeStyleSettings extends CustomCodeStyleSettings {
|
||||
if (!ApplicationManager.getApplication().isUnitTestMode()) {
|
||||
PACKAGES_TO_USE_STAR_IMPORTS.addEntry(new KotlinPackageEntry("java.util", false));
|
||||
PACKAGES_TO_USE_STAR_IMPORTS.addEntry(new KotlinPackageEntry("kotlinx.android.synthetic", true));
|
||||
PACKAGES_TO_USE_STAR_IMPORTS.addEntry(new KotlinPackageEntry("io.ktor", true));
|
||||
}
|
||||
|
||||
// Many of test data actually depend on this order of imports,
|
||||
|
||||
Reference in New Issue
Block a user