mhtt
V2EX  ›  问与答

寻求 xcode 下代码格式工具

  •  
  •   mhtt · May 4, 2016 · 1363 views
    This topic created in 3671 days ago, the information mentioned may be changed or developed.

    xcode 创建的文件,花括号都是在上面的,比如

    - (void)viewDidLoad {
    }
    
    //条件
    if(xxx){
    }
    else {
    }
    

    我也这样使用着,但最近喜欢下面的格式

    if(xxx)
    {
    }
    else
    {
    }
    

    那么问题来了,有没有办法把已经写好的代码格式化下呢?

    2 replies    2016-05-04 10:29:35 +08:00
    joeytat
        1
    joeytat  
       May 4, 2016
    BBUncrustifyPlugin
    typcn
        2
    typcn  
       May 4, 2016
    clang-format
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   3095 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 30ms · UTC 07:02 · PVG 15:02 · LAX 00:02 · JFK 03:02
    ♥ Do have faith in what you're doing.