讓程式碼變美的自動縮排 : ctrl + i

1.function數字情歌numberSong裡的程式碼慘不忍睹,雜亂無章。

  1. 雙擊 { ,選取function { }裡的程式碼。

3.按下快速鍵 ctrl + i 或從Xcode的menu選取Editor -> Structure -> Re-Indent,自動縮排 { }裡的程式碼。

results matching ""

    No results matching ""