Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

「インデントは半角スペース2つにする」の追加 #45

Open
uhooi opened this issue Jul 1, 2022 · 1 comment
Open

「インデントは半角スペース2つにする」の追加 #45

uhooi opened this issue Jul 1, 2022 · 1 comment

Comments

@uhooi
Copy link

uhooi commented Jul 1, 2022

当たり前かもしれません 🙏

SwiftUI の View はネストが深くなるので、インデントを半角スペース4つにすると読みづらいです。
半角スペース2つが望ましいです。

@YusukeHosonuma
Copy link
Owner

ありがとうございます。

ただ、コードスタイルについて本質的な正解はない、と考えています。少なくとも私自身は、半角スペース4つの方が読みやすいと感じています(同時に半角スペースが2つの方が読みやすいと感じる人の感覚もわかります)。

これについては今後執筆予定の 自動フォーマット にて述べたいと思いました 🙏

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants