V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
推荐学习书目
Learn Python the Hard Way
Python Sites
PyPI - Python Package Index
http://diveintopython.org/toc/index.html
Pocoo
值得关注的项目
PyPy
Celery
Jinja2
Read the Docs
gevent
pyenv
virtualenv
Stackless Python
Beautiful Soup
结巴中文分词
Green Unicorn
Sentry
Shovel
Pyflakes
pytest
Python 编程
pep8 Checker
Styles
PEP 8
Google Python Style Guide
Code Style from The Hitchhiker's Guide
yezheyu
V2EX  ›  Python

在编写 Python 代码时, vs code 有 pycharm 那样使用 alt+enter 生成函数的功能吗?

  •  
  •   yezheyu · Apr 28, 2020 · 2942 views
    This topic created in 2204 days ago, the information mentioned may be changed or developed.

    恩,例如用类的实例调一个不存在的方法,VS 既不会提示错误,也不会像 pycharm 那样提示你,可以用 Alt+enter 生成方法。

    avatar

    PS:新手,勿喷,刚开始使用 VS,很多地方都不熟,见笑了

    2 replies    2020-04-30 19:27:36 +08:00
    ericls
        1
    ericls  
       Apr 29, 2020
    VSCode 如果开始了 python 支持,应该会提示你方法不存在. 如果不行就加个 linter
    Harlaus
        2
    Harlaus  
       Apr 30, 2020
    没有,支持有限,而且 vsc 经常用着用着就没提示了,必须重启
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1376 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 38ms · UTC 17:10 · PVG 01:10 · LAX 10:10 · JFK 13:10
    ♥ Do have faith in what you're doing.