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?
this is the code after the reformatting.
Please sign in to leave a comment.
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.
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.
thanks a lot, in fact this is and edge cas and i saw that this option works perfect.