Home  >  Q&A  >  body text

python - 有什么可以批量将原来文档中的tab换为4个空格

如果在pycharm中的替换中直接输入tab时会直接跳到下一个输入框.

迷茫迷茫2741 days ago437

reply all(5)I'll reply

  • ringa_lee

    ringa_lee2017-04-18 10:29:35

    Right click on the project directoryReplace in Path,勾上Regex,使用正则替换,输出t,替换为

    reply
    0
  • 迷茫

    迷茫2017-04-18 10:29:35

    Code formatting tool~

    For php, specify the encoding specification

    phpcfb [项目目录]
    
    例如:
    ./vendor/bin/phpcbf --standard=PSR1,PSR2  ../path

    That’s it

    reply
    0
  • 高洛峰

    高洛峰2017-04-18 10:29:35

    editorconfig

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:29:35

    So what IDE do you use for python? Basically it can be set up

    reply
    0
  • 大家讲道理

    大家讲道理2017-04-18 10:29:35

    The pictures are simple and can be operated directly in notepad++:

    reply
    0
  • Cancelreply