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
mashpolo
V2EX  ›  Python

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

  •  
  •   mashpolo ·
    mashpolo · 2018-07-30 12:54:03 +08:00 · 1737 次点击
    这是一个创建于 2094 天前的主题,其中的信息可能已经有所发展或是发生改变。

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

    4 条回复    2018-07-30 14:03:00 +08:00
    lk0317
        1
    lk0317  
       2018-07-30 13:00:43 +08:00
    Settings —— Editor —— Code Style 按语言选
    josephpei
        2
    josephpei  
       2018-07-30 13:08:40 +08:00
    自带插件 EditorConfig,使用方法搜索之
    neoblackcap
        3
    neoblackcap  
       2018-07-30 13:37:18 +08:00
    2 楼+1
    更好让团队的人员风格统一
    mashpolo
        4
    mashpolo  
    OP
       2018-07-30 14:03:00 +08:00
    @lk0317 #1
    @josephpei #2 感谢指点
    关于   ·   帮助文档   ·   博客   ·   API   ·   FAQ   ·   我们的愿景   ·   实用小工具   ·   5646 人在线   最高记录 6543   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 33ms · UTC 03:31 · PVG 11:31 · LAX 20:31 · JFK 23:31
    Developed with CodeLauncher
    ♥ Do have faith in what you're doing.