下划线的 PyCharm 代码完成设置 - 受保护名称和损坏名称的优先级较低? [英] PyCharm code completion setup for underscore - less priority for protected and mangled names?

查看:35
本文介绍了下划线的 PyCharm 代码完成设置 - 受保护名称和损坏名称的优先级较低?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在使用 PyCharm,但我不喜欢默认代码完成,它显示 _protected__mangled 名称高于 public.

如何强制在代码完成列表底部显示以下划线开头并在顶部显示以 public 开头的名称?

像 PyDev 这样的一些编辑器在没有配置的情况下做得更好.

<小时>

@jole 询问的屏幕显示我的问题:

解决方案

这在 PyCharm 中是不可配置的;有一个未解决的问题,用于在此上下文中更改完成的默认行为.>

I am using PyCharm but I do not like default code completion which shows _protected and __mangled names higher than public.

How can I force to show names starting with underscore at the bottom of code completion list and public at the top?

Some editors like PyDev is doing it much better without configuration.


Screen asked by @jole showing my problem:

解决方案

This is not configurable in PyCharm; there is an open issue for changing the default behavior of the completion in this context.

这篇关于下划线的 PyCharm 代码完成设置 - 受保护名称和损坏名称的优先级较低?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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