V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
• 请不要在回答技术问题时复制粘贴 AI 生成的内容
Magician
V2EX  ›  程序员

PhpStorm 代码对齐 怎么弄的 ?

  •  
  •   Magician · Mar 14, 2016 · 4831 views
    This topic created in 3706 days ago, the information mentioned may be changed or developed.

    $assign['self_cnt'] = $self_order;
    $assign['third_cnt'] = $third_order;
    $assign['formget'] = $formget;

    $assign['self_cnt'] = $self_order;
    $assign['third_cnt'] = $third_order;
    $assign['formget'] = $formget;

    上面的如何弄成下面的 强迫症患者
    
    10 replies    2016-03-15 17:03:13 +08:00
    feiyuanqiu
        2
    feiyuanqiu  
       Mar 14, 2016
    settings->editor->code style->php->wrapping and braces->assignment statement->align consecutive assignments

    我觉得这种对齐其实不太好,遇到一个特别长的变量名整个格式就显得很奇怪
    Kilerd
        3
    Kilerd  
       Mar 14, 2016
    按照 PEP8 ,我保证不打死你。 噢,对了,我用 Python 的
    Magician
        4
    Magician  
    OP
       Mar 14, 2016
    @feiyuanqiu 谢谢啦 弄好了
    cxbig
        5
    cxbig  
       Mar 14, 2016
    建议用内置的 PSR 标准
    jsonline
        6
    jsonline  
       Mar 15, 2016 via Android
    对齐好无聊
    motecshine
        7
    motecshine  
       Mar 15, 2016 via Android
    培训机构出来的吧, 5.4 数组有新特性,建议让你们老师看看
    micookie
        8
    micookie  
       Mar 15, 2016
    为什么我没有看出来上边和下边的区别
    bigwahaha
        9
    bigwahaha  
       Mar 15, 2016
    为什么我没有看出来上边和下边的区别
    bigwahaha
        10
    bigwahaha  
       Mar 15, 2016
    为什么我也没有看出来上边和下边的区别
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   955 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 44ms · UTC 19:48 · PVG 03:48 · LAX 12:48 · JFK 15:48
    ♥ Do have faith in what you're doing.