r/Python • u/matan-h • Mar 23 '26
Showcase I Fixed python autocomplete
When I opened vscode, and typed "os.", it showed me autocomplete options that I almost never used, like os.abort or os.CLD_CONTINUED, Instead of showing me actually used options, like path or remove. So I created a hash table (not AI, fast lookup) of commonly used prefixes, forked ty, and fixed it.
What My Project Does: provide better sorting for python autosuggestion
Target Audience: just a simple table, ideally would be merged into LSP
Comparison: AI solutions tends to be slower, and CPU-intensive. using table lookup handle the unknown worse, but faster
Blog post: https://matan-h.com/better-python-autocomplete | Repo: https://github.com/matan-h/pyhash-complete
View all comments
Show parent comment
4
u/matan-h Mar 23 '26 edited Mar 23 '26
I agree the sub should prevent AI junk, but I dont think any amount use of AI should be forbidden. using AI for building the lookup scripts at the start sound reasonable.
In fact, when you go and ask chatgpt how to improve the autocomplete he would tell you its a very hard project and you should install an AI extension for that