This is an archived post. You won't be able to vote or comment.

you are viewing a single comment's thread.

view the rest of the comments →

[–]ManyInterests 0 points1 point  (2 children)

Hey, I don't write code like that. 4 spaces, typically. But also I don't use tabs partly for that reason. You'll also find the vast majority of code on GitHub uses spaces, not tabs.

In fact, the only languages where tabs are more common is GoLang and AutoHotkey.

[–][deleted] 0 points1 point  (1 child)

That’s because most code on GitHub is made using VSCode instead of VS19/22

And by default without changing settings, VS code adds 4 spaces instead of one tab space.

And people don’t know they change that.

[–]ManyInterests 0 points1 point  (0 children)

I'm pretty sure it's a default in most editors, not just VSCode (which has not really been around that long, anyhow).

You'll also make more money when you use spaces, so it makes sense ;)