Hi,
I think I'm simply to confused to find it .... but how do I tell Squeak to do a pretty print automatically when I save a method? I think I remember such a setting but can't find it anymore. Any pointers? CU, Udo |
On Oct 13, 2008, at 1:14 PM, Udo Schneider wrote:
> Hi, > > I think I'm simply to confused to find it .... but how do I tell > Squeak to do a pretty print automatically when I save a method? I > think I remember such a setting but can't find it anymore. Speaking of reformatting, do Smalltalkers generally like the way Squeak formats code? In particular, I dislike the way it puts each keyword of a keyword message on a separate line. I wish it would take into account the line length and leave them all on the same line if a line isn't very long. I find myself avoiding the use of refactoring because I know I won't like what it does to the code ... and I hate to miss out on the benefits of automated refactorings. --- Mark Volkmann smime.p7s (7K) Download Attachment |
> Speaking of reformatting, do Smalltalkers generally like the way > Squeak formats code? In particular, I dislike the way it puts each > keyword of a keyword message on a separate line. I wish it > would take > into account the line length and leave them all on the same > line if a > line isn't very long. I find myself avoiding the use of refactoring > because I know I won't like what it does to the code ... and > I hate to > miss out on the benefits of automated refactorings. > > --- > Mark Volkmann Hack it to work however you like, see class RBFormatter>>maximumArgumentsPerLine, and take a peek at other such methods defining constants you don't like. Ramon Leon http://onsmalltalk.com |
On Oct 13, 2008, at 3:22 PM, Ramon Leon wrote:
>> Speaking of reformatting, do Smalltalkers generally like the way >> Squeak formats code? In particular, I dislike the way it puts each >> keyword of a keyword message on a separate line. I wish it >> would take >> into account the line length and leave them all on the same >> line if a >> line isn't very long. I find myself avoiding the use of refactoring >> because I know I won't like what it does to the code ... and >> I hate to >> miss out on the benefits of automated refactorings. >> >> --- >> Mark Volkmann > > Hack it to work however you like, see class > RBFormatter>>maximumArgumentsPerLine, and take a peek at other such > methods > defining constants you don't like. Thanks! I was looking for something like that, but couldn't find it. --- Mark Volkmann smime.p7s (7K) Download Attachment |
In reply to this post by Udo Schneider
Hi Udo,
On Mon, Oct 13, 2008 at 8:14 PM, Udo Schneider <[hidden email]> wrote: > how do I tell Squeak to do a pretty print automatically when I save a > method? I think I remember such a setting but can't find it anymore. I can't help you but you should at least say which image and which code browser you are using. Bye -- Damien Cassou Peter von der Ahé: «I'm beginning to see why Gilad wished us good luck». (http://blogs.sun.com/ahe/entry/override_snafu) |
Damien,
> I can't help you but you should at least say which image and which > code browser you are using. I'm using your 3.10.2-7179web08.10.1 image with the OB based Browsers. CU, Udo |
In reply to this post by Mark Volkmann
On 2008 October 13, Mark Volkmann wrote:
> On Oct 13, 2008, at 1:14 PM, Udo Schneider wrote: > > Hi, > > > > I think I'm simply to confused to find it .... but how do I tell > > Squeak to do a pretty print automatically when I save a method? I > > think I remember such a setting but can't find it anymore. > > Speaking of reformatting, do Smalltalkers generally like the way > Squeak formats code? FWIW - I am fairly new, trying to do first more significant project, and I do not like auto formatting at all. I am using mostly RB in 3.9, but sometimes also other browsers, I would love to find a way to switch off auto-reformatting completely, everywhere. I strongly dislike any tool doing things to my code by default, on top, on several ocassions, I would swear comments were removed by auto-formatter, but did not have enough time to stop and investigate... Milan > In particular, I dislike the way it puts each > keyword of a keyword message on a separate line. I wish it would take > into account the line length and leave them all on the same line if a > line isn't very long. I find myself avoiding the use of refactoring > because I know I won't like what it does to the code ... and I hate to > miss out on the benefits of automated refactorings. > > --- > Mark Volkmann |
Free forum by Nabble | Edit this page |