推荐学习书目
› 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
zictos
V2EX  ›  Python

PyCharm 能折叠 if 语句之类的代码吗?

  •  
  •   zictos · Jul 3, 2022 · 3120 views
    This topic created in 1557 days ago, the information mentioned may be changed or developed.

    发现好像只能折叠函数之类的

    3 replies  •  2022-07-04 13:27:09 +08:00
    stein42
        1
    stein42  
       Jul 3, 2022   ❤️ 1
    最新的 pycharm ,默认设置。
    可以折叠,只要子语句块有两条以上语句。
    zictos
        2
    zictos  
    OP
       Jul 3, 2022
    @stein42 #1 好,等下安装新的看看,我的还是几年前安装的
    answerhuang
        3
    answerhuang  
       Jul 4, 2022
    // region
    // endregion


    折叠这两行之间的所有代码.
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   2778 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 23ms · UTC 13:21 · PVG 21:21 · LAX 06:21 · JFK 09:21
    ♥ Do have faith in what you're doing.