Reputation: 24641
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?
Upvotes: 3
Views: 225
Reputation: 539
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."
Upvotes: 3