Search code examples
pythonintellij-ideaautocompletepycharmautosuggest

Exclude or prioritize suggestions in PyCharm code completion?


How do i exclude or decrease priority for certain suggestions? i use self most inside a method. But i always have to type self fully because PyCharm keeps suggesting select from ..\DLLs\select.pyd. I've never used or imported select in my project.

Similarly, I want return to be top priority instead of re from regular expressions module. (re module is not used in my project). My question may be linked to these question:

An acceptable solution might be an option in PyCharm like this or this or this

PyCharm code completion

PyCharm 2021.2.2 on Windows 10 64 bit


Solution

  • You can vote for https://youtrack.jetbrains.com/issue/PY-47962. The fix is in progress.