Spyder does not autocomplete local variables

后端 未结 5 1716
有刺的猬
有刺的猬 2020-12-23 02:08

I\'m having a problem getting my local variables autocompleted. This is a very basic functionality which I\'m sure it should support. When I\'m starting to write a variable

5条回答
  •  借酒劲吻你
    2020-12-23 02:38

    (Spyder dev here) Spyder does complete local variables but to have this functionality you need to install a library called rope. You can do it by running this command in a terminal

    pip install rope
    

    If you use Python 3 this command needs to be

    pip install rope_py3k
    

    Besides, code completion on the Editor works now with both Ctrl+Space and with Tab.

    Edit: Updated answer for the Spyder version 2.3.0.

提交回复
热议问题