[TxMt] Indentation of switch/case blocks

Trevor Harmon trevor at vocaro.com
Mon Apr 24 16:51:54 UTC 2006


On Apr 21, 2006, at 5:09 PM, Allan Odgaard wrote:

>> [...] if you type an open brace, it will automatically *unindent*  
>> for you. Couldn't TextMate do the same thing?
>
> I have considered something like that, but rather than hardcode  
> just that single case, I am (generally) preferring the more general  
> systems. For example you could write:
>
>    case 10:«return»  // this triggers extra indent
>       case 20:       // this line should _not_ have been indented

Ah, good point. Looks like Xcode doesn't handle that case well at all.

> And when we go outside C we get more of these special cases.

I was thinking this would be specified somehow in the language  
definitions for the C-like bundles only (Java, C/C++, Obj-C, C#).

Trevor

-------------- next part --------------
A non-text attachment was scrubbed...
Name: smime.p7s
Type: application/pkcs7-signature
Size: 2363 bytes
Desc: not available
URL: <http://lists.macromates.com/textmate/attachments/20060424/680a5aa5/attachment.p7s>


More information about the textmate mailing list