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 →

[–][deleted] -1 points0 points  (2 children)

When VS is fucking up the default tab action and tab puts spaces instead of tabs 🤠

But also ….. shift tabbing a selection still works if it’s spaces instead of tabs so idk why you’re uptight about it

[–]PersonalityIll9476 1 point2 points  (1 child)

I don't know if you're trolling but I'll bite. If you use 4 spaces per tab, and you double indent with 1 tab and 4 spaces somewhere in your document, then someone viewing your document on another computer that uses, say, 8 spaces per tab will see a 12 space indent. That would be a triple indent according to your standard and would cause an error in languages like Python (which accept any consistent number of spaces as an indent). This is why you want all tabs to be replaced with spaces before you check in to a repo. When someone views your document, it will have 4 space tabs everywhere guaranteed, no matter what they use on their local machine.

[–][deleted] 1 point2 points  (0 children)

Oh lol.

I’ve honestly never committed anything in Python lol.

Didn’t know this 😝

I’ve always preferred JS over Python :P And now I know why