In PyCharm, tab completion replaces the word right of the cursor by default. This happens to me often when I insert some function into existing code. For example, if I want to add a call to foobar around an existing x+1 expression, I would type

which brings up the completion options. The result after tab-completing is

with x having been overwritten. Is there a way to make PyCharm's completion stop removing words right to the cursor?
At least in my version of Pycharm, the option can be changed under Settings->Keymap in "Choose Lookup Item" and "Choose Lookup Item Replace"

I don't ever expect to see text replaced when doing tab completion, so I've moved "Tab" to "Choose Lookup Item."
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With