|
|
|
|
|
by wwweston
2496 days ago
|
|
In case anyone wonders why someone might answer "both" (other than an entirely undisciplined approach): Tabs for line indentation, spaces for every other kind of alignment is one philosophy. It's the one that seems to hit the sweet spot for most of the issues that I care about (cross-editor consistent yet flexible management of line indentation depth as controlled by hits of the tab key + tabstop setting). But if you're running the project and decide spaces are The One True Way™, I'll figure out a way to get the editor to do it for me and ask you for a raise for the trouble (and, of course, market standards). ;) |
|
You don't have to "figure out" anything. It's the default of every IDE I've ever used.
I press tab, VSCode inserts 4 spaces. I press shift+tab, it deletes 4 spaces.
Nobody actually presses spacebar 4 times to indent unless they are forced to use vim on some remote machine.