Closed jdev7 closed 2 years ago
Hmm, I think I can fix this by stripping newlines before piecing it back together. I'll get back to this tomorrow, thanks for the suggestion!
@jdev7 fixed in 1.1! https://github.com/aheze/Multiliner/releases/tag/1.1.0
Works perfect! Thanks :)
While it works perfectly on a one line function, if you already have code like this:
and you apply multiliner, the result will be:
which is not great. It would be awesome if it already detected new lines, and didn't apply new indentation. For the latter I don't know if it could re-use Xcode's reindent command for each line maybe, so you don't have to implement it yourself.