Make 4-spaces the mandatory default for all VS Code-based editors, and editors that respect VS Code rules#76
Make 4-spaces the mandatory default for all VS Code-based editors, and editors that respect VS Code rules#76shovon wants to merge 1 commit into
Conversation
|
We should not be pushing the vscode settings file, plus the 4 indentation is already active via prettier. Why is this needed? |
I'll answer this in two parts. Why?It's because it's incredibly annoying seeing VS Code (and derivatives) show me 2-character indents, while files are 4 characters. Depending on the IDE's mood, I have to update the indentation for every single file that I have open, so that what VS Code shows me, and the indent policy are aligned. The only way to have things be consistent is that I either change my global VS Code settings, or I update the workspace settings, which creates a The latter option keeps things consistent, for everyone. Why not just Prettier?Read the above section. Like, yes, with the Prettier plugin, hitting save causes the files to be formatted to 4-space indent, but that IDE-level inconsistency is still there, and Prettier is just not able to solve that annoyance. This is a common problemYou might be thinking that this is an isolated problem. But that's not true. If that were the case, then several open source projects wouldn't include some I mean, just look at the laundry list of open source projects that include |
Prettier at its core is a javascript code, it runs fine for any IDE |

No description provided.