Python and Intellisense

前端 未结 16 832
南方客
南方客 2020-12-02 09:33

Is there an equivalent to \'intellisense\' for Python?

Perhaps i shouldn\'t admit it but I find having intellisense really speeds up the \'discovery phase\' of learn

相关标签:
16条回答
  • 2020-12-02 10:07

    Pyscripter has the best intellisense i have meet :)

    0 讨论(0)
  • 2020-12-02 10:11

    I would recommend jedi-vim, it's perfect to me, try it and you won't regret.

    0 讨论(0)
  • 2020-12-02 10:12

    The dynamic nature of the language tends to make autocomplete type analysis difficult, so the quality of the various completion facilities menitoned above varies wildly.

    While it's not exactly what you asked for, the ipython shell is very good for exploratory work. When I'm working with a new module, I tend to pull it into ipython and poke at it. Having tried most of the solutions mentioned above (though it's been years since Wing), ipython's completion facilities are consistently more reliable. The two main tools for exploration are tab complete and appending a question mark to the module/function name to get the help text, e.g.:

    In [1]: import sqlalchemy
    
    In [2]: sqlalchemy.s #tab completion
    sqlalchemy.schema    sqlalchemy.select    sqlalchemy.sql       sqlalchemy.subquery
    
    In [2]: sqlalchemy.select? #Shows docstring
    
    In [3]: sqlalchemy.select?? #Shows method source
    
    In [4]: edit sqlalchemy.select #opens the source in an editor
    
    0 讨论(0)
  • 2020-12-02 10:17

    The IDLE editor that comes with Python has an intellisense feature that auto-discovers imported modules, functions, classes and attributes.

    0 讨论(0)
  • 2020-12-02 10:17

    I'd recommend Komodo Edit. However, I should point something out: you're not going to get anything quite as good as what you're used to with Visual Studio's C# intellisense. Python's dynamic nature can make it difficult to do these kinds of features.

    0 讨论(0)
  • 2020-12-02 10:18

    Try visual Studio Code. It has very powerful Python and Django support and thousands of plugins for other languages used in a Python project such as CSS, HTML and Django templates.

    Best of all, it is free: https://code.visualstudio.com

    0 讨论(0)
提交回复
热议问题