website/content/blog/tabs.md

827 B

+++ title = "Why using tabs for indentation" date = 2024-05-12 description = "I use tabs for indentation, here are the reasons." insert_anchor_links = "left" draft = true [taxonomies] tags = ["programming"] +++

I always indent with tabs when given the choice. Here is why.

If you know other pro-space arguments, I'm interested.

Pros

Advantages to use tabs, and refutations of some pro-space arguments.

Tab width is what you want

A code that looks the same everywhere may not be what you want

Git is smart enough

to show spaces in red when they are followed by a tab

Moving through indentations with the keyboard

Invisible character rendering

No need to configure your editor

Distinguish indentation and alignment

Formatters can be useful

Cons

Copying tabs from terminal