SwiftFormat
SwiftFormat copied to clipboard
How I can setup indentation for empty lines?
Hello! I've encountered a problem. I can’t find information anywhere on how to configure the formatting of empty lines. Do I understand correctly that now in SwiftFormat you can either clear all spaces in empty lines or not format them at all?
I have these settings--indent tab
, --tabwidth 4
,--trimwhitespace nonblank-lines
and SwiftFormat simply ignores this nightmare:
Expected result (Ctrl+I in Xcode):
What do you think and what can you advise in this case? Thanx!
I think this isn't supported at the moment - as you say the options are either to truncate blank lines or leave them alone. I'll consider this a feature request.
Thank you very much, I'll be waiting! I think this is a relatively popular problem since many people have spaces and tabs highlighted. And also adding spaces on empty lines is the default behavior of Xcode.
I've encountered same problem. Please consider this feature. Thank you so much!