Swimat icon indicating copy to clipboard operation
Swimat copied to clipboard

Line length

Open rggjan opened this issue 7 years ago • 3 comments

Feature request Make it possible to define a maximum line length, and automatically wrap lines which are too long, or combine short enough lines, similar to what clang-format does for objective-c and c++ code.

rggjan avatar Jan 31 '18 13:01 rggjan

Combining lines under swift will mean the use of semi colons, is that something you really want to do?

adozenlines avatar Apr 01 '18 23:04 adozenlines

No! I was talking about combining and splitting single lines without semicolon. For example changing this:

assert(age >= 0, "A person's age can't be less than zero.")

To this: assert(age >= 0, "A person's age can't be less than zero.")

Or the other was around, depending on preferred maximum line length.

rggjan avatar Apr 02 '18 06:04 rggjan

+1, it will be great to have this feature!

jasjuang avatar Apr 20 '18 22:04 jasjuang