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

有小伙伴知道 pycharm 里面能针对某类型的文件单独设置缩进吗

  •  
  •   mashpolo ·
    mashpolo · Jul 30, 2018 · 2496 views
    This topic created in 2891 days ago, the information mentioned may be changed or developed.

    主要是后端默认用 4 个空格来缩进,但前端需要能默认是两个空格,看了一圈没找到设置的地方,有小伙伴了解的吗?

    4 replies    2018-07-30 14:03:00 +08:00
    lk0317
        1
    lk0317  
       Jul 30, 2018
    Settings —— Editor —— Code Style 按语言选
    josephpei
        2
    josephpei  
       Jul 30, 2018
    自带插件 EditorConfig,使用方法搜索之
    neoblackcap
        3
    neoblackcap  
       Jul 30, 2018
    2 楼+1
    更好让团队的人员风格统一
    mashpolo
        4
    mashpolo  
    OP
       Jul 30, 2018
    @lk0317 #1
    @josephpei #2 感谢指点
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   5777 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 414ms · UTC 02:47 · PVG 10:47 · LAX 19:47 · JFK 22:47
    ♥ Do have faith in what you're doing.