PyCharm 代码补全:如何防止空格键和“点"从提交查找项 [英] PyCharm code completion: how to prevent space key and "dot" from committing lookup item

查看:64
本文介绍了PyCharm 代码补全:如何防止空格键和“点"从提交查找项的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如何在使用代码完成时禁用空格键提交建议?

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

例如,如果我尝试将某些内容命名为req",当我完成输入并输入一个空格"时,我最终会改为使用request"——这只是一个例子.

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 example.

我在键盘映射中的任何地方都没有看到它,并且在其他地方看到了这一点,但没有任何明显的解决方案.

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

推荐答案

IDE 设置 | 中有一个预选第一个建议"选项编辑 |代码完成部分.它设置成什么?尝试使用智能"和从不"选项,看看哪个更适合您.

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.

这篇关于PyCharm 代码补全:如何防止空格键和“点"从提交查找项的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆