Reformat code and empty lines

I configured appcode to use maximun one empty line inside the code (see images).
But when i reformat my code the empty lines are not removed.

Any advices?

Screen Shot 2014-07-19 at 09.20.59.png
this is the code after the reformatting.
Screen Shot 2014-07-19 at 09.24.35.png

3 comments
Comment actions Permalink

maybe i understood the problem...that option is not related to the empty line between the instructions, but the space inside a single instruction... :|
I'm looking for something similar to the clang option `MaxEmptyLinesToKeep` docs

There is something similar on appcode?

thanks.

0
Comment actions Permalink

No, you are right, this option is similar to clang's MaxEmptyLinesToKeep. The problem in your particular case is that the element after the whitespace is a comment, which is not considered to be "code". Therefore, the "max blank lines in code" option is not really applicable here.

In cases with actual code (not comments) it should work as you expect.

0
Comment actions Permalink

thanks a lot, in fact this is and edge cas and i saw that this option works perfect.

0

Please sign in to leave a comment.