Problem of auto indent for C or similar languages


#1
int main()
{
	int a;
	scanf("%d", &a);
	if(a == 0)
		printf("a is zero\n");
}

By auto indent, it would be indented as

int main()
{
	int a;
	scanf("%d", &a);
	if(a == 0)
		printf("a is zero\n");
	}

The problem is the last brace.


#2

Auto-indentation is something that the Atom team is working on. Keep an eye on the auto-indent label: