4 ms·
Solution: write in whatever way you want and hit "reformat code" before you git add/commit. Reality reconciled, opinion great again. Addendum for clarification
by mmmrk 7y ago
Solution: write in whatever way you want and hit "reformat code" before you git add/commit. Reality reconciled, opinion great again.
Addendum for clarification: part of the appeal of autoformatters is that what you type into your editor does not matter. I don't see the "difference of reality" because thanks to black, I don't need to care.
- prepend 7y agoWhat I meant by minimizing different realities is that I would rather avoid situations where I have to write code and look at code differently. I can definitely autoformat on save or on commit, but I’d rather not so I can always “think using the same code” and get used to the same quotes. I’m happy to adopt to other folks projects as I don’t want to convert anyone. But purposely working on my own projects with a quote different than the record seems like an extra effort, even if minimal.