[racket] Control indentation

From: José Lopes (jose.lopes at ist.utl.pt)
Date: Sun Nov 6 05:06:30 EST 2011

Hello,

Changing the default indentation is considered a good practice? I mean 
to enforce to others users?
Or is it preferable to leave indentation as is.

Regards,
José

On 04-11-2011 23:33, Brian Mastenbrook wrote:
> On 11/04/2011 01:20 AM, José Lopes wrote:
>> Hello everyone,
>>
>> I would like to tell the editor how to indent a particular piece of 
>> code.
>> For example, I have this
>>
>> (move-z box-height
>> (cube 1))
>>
>> But I would like to have this
>>
>> (move-z box-height
>> (cube 1))
>>
>> Is there a way to tell the editor how to indent?
>
> Look in Edit -> Preferences in the Editing tab. You probably want to 
> add move-z to "Lambda-like Keywords". This will give you indentation 
> like:
>
> (move-z box-height
>   (cube 1))
>
> (move-z
>     box-height
>   (cube 1))
>

-- 
José António Branquinho de Oliveira Lopes
58612 - MEIC-A
jose.lopes at ist.utl.pt



Posted on the users mailing list.