this post was submitted on 28 Nov 2024
456 points (88.3% liked)

Programmer Humor

32739 readers
254 users here now

Post funny things about programming here! (Or just rant about your favourite programming language.)

Rules:

founded 5 years ago
MODERATORS
 
you are viewing a single comment's thread
view the rest of the comments
[โ€“] morrowind@lemmy.ml 9 points 4 weeks ago (1 children)

Any IDE worth a damn will manage that for you.

Yeah in like 10% of cases. I'm copying something from a pdf my prof gave. The only ones able fix spacing now are me and God

[โ€“] Incblob@lemmy.world 3 points 4 weeks ago

You, god, pretty much any Formatter and ide. Black Formatter: "All leading tabs are converted to spaces, but tabs inside text are preserved." Vscode has a command to convert between the two, and non-leading tabs are a simple replace/regex away from being converted. If you mean unorthodox spacing, if you have code with like 7 leading spaces, then that's a matter for a priest.