简体   繁体   English

实例化一个类时,PyCharm可以自动完成参数吗?

[英]Can PyCharm autocomplete arguments when instantiating a class?

Is it possible to set up PyCharm to autocomplete arguments when instantiating a class like in the example? 在实例化示例中的类时,是否可以将PyCharm设置为自动填充参数?

3:48 Autocomplete arguments 3:48 自动填充参数

“ctrl p”将显示参数信息,这对于记住对象采用的参数和顺序非常有用。

PyCharm provides this by default. PyCharm默认提供此功能。 It doesn't inject the argument names into the code as per the video you linked to, but it does give you a tool tip while instantiating a class with the arguments listed. 它不会根据您链接的视频将参数名称注入代码中,但它会在实例化列出参数的类时为您提供工具提示。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM