Reputation: 3337
I have file email.php where I have markup and declaration of class email_db which I never used in another place. But when I use autocomplete when I try type empty by 2 first letters em I often see this class as suggestion.
Is it possible to ignore some class names from code complete feature?
Upvotes: 2
Views: 720
Reputation: 3557
No, there's no option for that. The only thing you can try - is to move the file with class declaration to a folder marked "excluded".
Upvotes: 3
Reputation: 2536
Configuring imports **To configure classes to be excluded from import
- Open the Settings/Preferences dialog box, and under the Editor / General node, click Auto-Import.
- On the Auto-Import page, click
Alt+Insert
.- In the dialog box that opens, type the name of the class or a whole package to be excluded, and click OK. Use Alt+Insert and Alt+Delete to manage the list of classes and packages that IntelliJ IDEA shouldn't place to the suggestion list.
- Apply changes and close Settings/Preferences dialog.
Original Link: https://www.jetbrains.com/help/idea/excluding-classes-from-auto-import.html
Hope this helps.
Upvotes: 0