I'm trying to disable auto-indentation for the lines below starting with 'case'. This is how I'd like the code to appear:
switch ($where) { case 'start' : # code... break; default : case 'middle' : # code... break; case 'end' : # code... break; }
However, by default, the php bundle wants to format it like this:
switch ($where) { case 'start' : # code... break; default : case 'middle' : # code... break; case 'end' : # code... break; }
I've added this preference item to the php bundle for source.php, but it's not working:
/* preferences */ { unIndentedLinePattern = '^\s*case\s+.*$'; }
Am I doing this right?
Thanks, Q