facebook twitter hatena line email

Unity/Csharp/コーディング規約

提供: 初心者エンジニアの簡易メモ
移動: 案内検索

参考リンク

Csharp Coding Guidlines Unity Community 和訳 https://qiita.com/shun-shun123/items/212893b60b7f14c69351

microsoft公式 c# dotnet https://learn.microsoft.com/ja-jp/dotnet/csharp/fundamentals/coding-style/coding-conventions

C# at Google Style Guide https://google.github.io/styleguide/csharp-style.html

Unityと.netの違い https://takap-tech.com/entry/2020/03/08/015721

functionを1行で

void Awake() {
   Debug.Log("test");
}

void Awake() => Debug.Log("test");

変数やメンバー変数やメソッド名について

Puscalやcamelやsnakeなど

https://takap-tech.com/entry/2020/03/08/015721

コードフォーマット整形

VisualStudioメインメニュー/編集/フォーマット/ドキュメントをフォーマット

参考:https://icoc-dev.hatenablog.com/entry/2014/05/12/162013