4 ms·
Can you say what you’d prefer and why? I often use very large fonts, well large compared to my peers, when coding and really prefer tabs as I can define their w
by azemetre 2y ago
Can you say what you’d prefer and why? I often use very large fonts, well large compared to my peers, when coding and really prefer tabs as I can define their width myself.
- tacitusarc 2y agoTabs, four spaces, hell even three spaces. I care very little about formatting as long as I can understand quickly what I’m looking at. So basically anything greater than two spaces.
- DecoySalamander 2y agoSpaces in indentation feel like an artifact of bygone era when we didn't have proper tooling and had to do everything manually, one keystroke at a time. Personally I just hit TAB and commit whatever is in default config of autoformatter utility.
- whs 2y agoNot OP, but I also tabs. Usually I set tab to 4 spaces as 2 space is too little to clearly see the indentation, but in frontend projects usually I'd need to set it to 2 as otherwise the JSX layout would easily overflow horizontally. JS also prefer callback-style code that requires another indentation, which might not always be possible to replace with await.