简体   繁体   English

如何自动完成所有参数列表以在PyCharm中起作用?

[英]How to autocomplete list of all arguments to function in PyCharm?

How to autocomplete list of all arguments to function in PyCharm? 如何自动完成所有参数列表以在PyCharm中起作用?

I want to autocomplete arguments for function like in PyDev. 我想为像PyDev这样的函数自动填充参数。

def do(a, b, c):
   pass

After typing do(<cursor here>) I want to autocomplete to do(a, b, c) - is it possible in PyCharm or hidden too much. 键入do(<cursor here>)我想自动完成to do(a, b, c) -在PyCharm中是否有可能或隐藏太多。 It is very useful in large programs. 在大型程序中非常有用。

Now I can autocomplete single argument but it is not enough. 现在我可以自动完成单个参数,但这还不够。

according to documentation ( https://www.jetbrains.com/help/pycharm/2016.1/auto-completing-code.html ) 根据文档( https://www.jetbrains.com/help/pycharm/2016.1/auto-completing-code.html

you can do these things in PyCharm to help with autocompletion of code -- which is what i'm understanding you to need help with: 您可以在PyCharm中执行以下操作以帮助自动完成代码-这就是我的理解,您需要以下方面的帮助:

  • Basic code completion on ⌃Space. ⌃Space上的基本代码完成。
  • Type completion on ⌃⇧Space. 在⌃⇧Space上键入完成。
  • Completing punctuation on ⏎. 在⏎上完成标点符号。
  • Completing statements with smart ⏎. 用smart完成语句。
  • Completing paths in the Select Path dialog. 在“选择路径”对话框中完成路径。
  • Expanding words with ⌥/. 用⌥/扩展单词。

see documentation link above for more detailed info on each. 请参阅上面的文档链接,以获取有关每个文档的更多详细信息。 lots of pictures and help for each of the above. 上面的每个图片都有很多图片和帮助。 hope this helps. 希望这可以帮助。

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

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