[racket] Control indentation

From: Matthias Felleisen (matthias at ccs.neu.edu)
Date: Sun Nov 6 08:19:02 EST 2011

Leave it as it is! -- Matthias



On Nov 6, 2011, at 5:06 AM, José Lopes wrote:

> 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
> 
> _________________________________________________
> For list-related administrative tasks:
> http://lists.racket-lang.org/listinfo/users




Posted on the users mailing list.