> Hi, I am using Pharo with the default browser, which is the OmniBrowser. When 
> I
> right-click on a message name in the right-most panel and choose "rename
> refactor" from the menu, enter the new name and accept, the message sends are
> renamed, but the whitespace formatting in those refactored methods is not
> preserved. Is there any way at present to do this while keeping the formatting
> intact?

Automatic refactoring that preserve the formatting are extremely
difficult to implement. In a common case, like with the rewrite engine
that the refactoring browser is using internally, this is not really
feasible. It is much easier to write your own formatter that formats
as you like, even if writing a working formatter is not trivial
either.

For details listen to what the original authors of the Refactoring
Browser say about code formatting:
<http://www.cincomsmalltalk.com/blog/blogView?entry=3426663681>.

Lukas

-- 
Lukas Renggli
http://www.lukas-renggli.ch

_______________________________________________
Pharo-project mailing list
[email protected]
http://lists.gforge.inria.fr/cgi-bin/mailman/listinfo/pharo-project

Reply via email to