Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Exclude kotlin.Result from Autocomplete and auto import in Intellij Idea

I tried excluding kotlin.Result from the auto complete list but it doesn't work even after invalidating the cache. It works for normal classes.

I followed this official guide https://www.jetbrains.com/help/idea/auto-completing-code.html#configure-code-completion

Is there any way to fix this ?

Exclude settings screenshot

Autocompletion

like image 257
vovahost Avatar asked Apr 15 '19 08:04

vovahost


People also ask

How do I turn off auto import in IntelliJ?

You can disable auto-import on completion and use quick-fixes instead: In the Settings/Preferences dialog ( Ctrl+Alt+S ), go to Editor | General | Auto Import. On the Auto Import page that opens, use the checkboxes in the TypeScript/JavaScript area to enable or disable import generation on code completion.

How do I not import in IntelliJ?

To avoid IntelliJ IDEA replacing imports with * , you need to configure the Class count to use import with '*' and Names count to use static import with '*' preferences: Go to Preferences > Editor > Code Style > Java.

How do I change import settings in IntelliJ?

You can change the settings to import entire packages instead. In the Settings/Preferences dialog ( Ctrl+Alt+S ), select Editor | Code Style | Java | Imports. Clear the Use single class import checkbox, and apply the changes.

How do I manage imports in IntelliJ?

In Eclipse, you press CTRL + SHIFT + O “Organize Imports” to import packages automatically. For IntelliJ IDEA, if you press CTRL + ALT + O “Optimize Imports”, it just removes some unused imports, never imports any package.


1 Answers

There is a little mismatch in the feature design: KT-29043. Please, vote it. We will try to fix it in near releases.

like image 179
Anton Yalishev Avatar answered Sep 29 '22 20:09

Anton Yalishev