如何在PyCharm / IntellijIdea中更改自动完成行为? [英] How to change autocomplete behavior in PyCharm/IntellijIdea?

查看:143
本文介绍了如何在PyCharm / IntellijIdea中更改自动完成行为?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

当你从中间重写一些变量,属性或函数时,这非常烦人,PyCharm会让旧字符串的其余部分出现。

It's very annoying when you rewriting some variable, attribute or function from it's middle and PyCharm let there the rest of the old string.

我的光标位于's'和'_'之间,我按下了ctrl + space:

My cursor is between 's' and '_' and I pressed ctrl+space:

现在,当我使用建议的完成时,它不会删除函数的其余部分。

Now, when I use suggested completion, it doesn't remove the rest of the function.

是否可以删除其余功能?

Is it possible to make it remove the rest of the function?

推荐答案

当完成弹出窗口处于活动状态时,按Enter键会在插入符号处插入所选项目的文本,然后按Tab键将替换后的标识符插入所选项目的文本。所以你应该在这种情况下按Tab而不是Enter。

When the completion popup is active, pressing Enter inserts the text of the selected item at caret, and pressing Tab replaces the identifier after caret with the text of the selected item. So you should press Tab instead of Enter in this situation.

这篇关于如何在PyCharm / IntellijIdea中更改自动完成行为?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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