When you copy your code and want to post it on SO, it's usually indented relative to outer brackets/tags. When you post it and click the Code Sample
, it leaves it like it is and you have to trim the spaces yourself.
Personally I don't find it as that big of a deal when I post. But there are a lot of posts by users, usually newbies that can't handle it and as a result keep it indented.
What I mean, code like:
{
printf("hello world");
}
Should automatically transform to:
{
printf("hello world");
}
{ }
on the editor it will remove indents with successive presses until it reaches the edge then indents by four.