We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Here is the default Xcode-generated indentation for some SwiftUI code:
NavigationStack { CoolView() .padding(10) } .padding(12)
Note that the first ".padding" example is indented while the second is not. So this seems like a tricky case.
Using swift.vim auto-indent I get:
So the second ".padding" is correctly not indented, but the first should be indented.
The text was updated successfully, but these errors were encountered:
ah yes. i'm not sure exactly what heuristic would always work but seems like )\n\s+\. should always be previous line + X. PRs welcome!
)\n\s+\.
Sorry, something went wrong.
No branches or pull requests
Here is the default Xcode-generated indentation for some SwiftUI code:
Note that the first ".padding" example is indented while the second is not. So this seems like a tricky case.
Using swift.vim auto-indent I get:
So the second ".padding" is correctly not indented, but the first should be indented.
The text was updated successfully, but these errors were encountered: