V2EX = way to explore
V2EX 是一个关于分享和探索的地方
现在注册
已注册用户请  登录
推荐学习书目
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 · 2020-04-28 18:35:55 +08:00 · 2032 次点击
    这是一个创建于 1430 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    avatar

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

    2 条回复    2020-04-30 19:27:36 +08:00
    ericls
        1
    ericls  
       2020-04-29 03:26:12 +08:00
    VSCode 如果开始了 python 支持,应该会提示你方法不存在. 如果不行就加个 linter
    Harlaus
        2
    Harlaus  
       2020-04-30 19:27:36 +08:00
    没有,支持有限,而且 vsc 经常用着用着就没提示了,必须重启
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   2984 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 29ms · UTC 15:05 · PVG 23:05 · LAX 08:05 · JFK 11:05
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.