Hi peter

Is it possible to configure formatter to preserve empty lines and line comments?

I do not know :)


e.g.
--------------
myMethod
someCode.
< empty line that I would like to preserve >
moreCode.
---------------
But I think that should be customizable.


the formatter also automatically puts comments on the end of the previous statement.
e.g.
------
someCode.
"a comment"
moreCode.

If I recall, the problem is that comments are not a node but an attribute of a node. We should try to fix that. It is not clear where you always want to put them.

----
ends up as
----
someCode. "a comment"
moreCode.
-----

Both those behaviors seems odd to me.

I've seen empty newlines and line comments in Pharo code... so either I missed some setting or people just don't use the formatter?
I use the formatter and I would like to use it much more systemaitcally.

Thanks,
Peter

Reply via email to