开发者

PyCharm code completion: how to prevent space key and "dot" from committing lookup item

开发者 https://www.devze.com 2023-04-09 09:32 出处:网络
How does one disable the space key from committing the suggestion when using code completion? If I attempt to name something \"req\" for example, when I\'m done typing, and enter a \"space,\" I wind

How does one disable the space key from committing the suggestion when using code completion?

If I attempt to name something "req" for example, when I'm done typing, and enter a "space," I wind up with "request" instead -- this being just one e开发者_运维知识库xample.

I don't see it anywhere in the keymap, and have seen this mentioned in other places without any apparent solution.


There's a 'Preselect the first suggestion' option in IDE Settings | Editor | Code completion section. What is it set to? Try to use 'Smart' and 'Never' options to see which one works better for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号