Hi,
when I program in C or C++, I notice that switch/case are automatically indented in a weird way I don’t like. The default behaviour is as follows:
switch(a)
{
case 1:
{
break;
}
case 2:
{
break;
}
default:
{
break;
}
}
However, I would prefer it as follows:
switch(a)
{
case 1:
{
break;
}
case 2:
{
break;
}
default:
{
break;
}
}
I wonder how I could change this. It is very annoying during typing, having to manually indent the case
all the time. I know it should be possible to configure this behaviour by editing some language definition file, but I would prefer not to touch the files that are bundled with ST since they will be overwritten the next time I update. So is there another possibility how I could change this default indent behaviour?