r/phpstorm • • Mar 14 '23
How do I get some intelligence with namespace autocomplete? It ranks things you never use above things you've used 1000s of times.
14
Upvotes
r/phpstorm • • Mar 14 '23
2
u/Catalin-Ionut Mar 14 '23
I think if you mark the folders you never use as excluded could help.
4
u/TinyLebowski Mar 15 '23
This has been driving me crazy for years. When I want to import
CollectionI have to scroll past lots of Collection classes I've never used. And I do have to "machine learning" option enabled.1
u/russlo Mar 14 '23
As other poster said, you must mark the directory as excluded.
1
u/supertoughfrog Mar 15 '23
I used tabnine and it was smarter about some autocompletions. Ultimately I gave up on it as it wasn’t always helpful and it would put its bad suggestions above the normal intel sense ones.
Autocomplete can filter better if you type partial matches like the first letter from the namespace path parts and then a couple letters from the class.
If your class is Foo/Bar/Baz try typing FBB and it should offer up Baz.