妤喵 (林珮妤) says to YSITD如果是在 GitHub 的話,的確會建議用 2-space / 4-space 當縮排,不過還是看該 Repo 的開發者共通協議好為主,只要不要同一個 Repo 有 \t 跟 2-space 還有 4-space 混用就好,妤喵這邊建議大家可以考慮在 Repo 底下寫一份 .editorconfig 讓編輯器了解到該 Repo 適用哪種縮排格式,大部分編輯器原生支援或是需要裝 Plugin 來讓 .editorconfig 檔案生效,有興趣可以參考 http://editorconfig.orgat Sat, Apr 21, 2018 8:17 PM