For lack of a better answer, would an equivalent be to be able to
programmatically perform the <Format> menu item that is on the editor menu?

Here is how I learnt a lot about Pharo...
1. Open the editor menu and bring up halos on the <Format> menu item.  (key
modifier combination varies between OS platform)
2. Click the spanner "debug" icon and choose <inspect morph>
3. Look through all the instance vars for the message that seems to invoke
the formatting.  Browse all implementors of that message adding "self halt"
at the top.
4.  Execute the command and trace through how its done behind the scenes,
and adapt to your requirements.

HTH, cheers -ben

On Fri, Jan 30, 2015 at 5:08 AM, Laura Risani <laura.ris...@gmail.com>
wrote:

> Hi all,
>
> How do i apply autoformatting to existing packages? I've read somewhere
> that this functionality used to be at the refactoring menu, but i can't
> find it, don't know if it has been renamed or moved.
>
> Best,
> Laura
>

Reply via email to