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
Can you indent switch cases like the xcode when you select it in Text editing preferences. On alternative can be a option in Swimat settings.
I tried editing your code with some success and a little bug with the break keyword after the break it will add another indent to the next case.
var checkInCase = false if indent.inSwitch { if isNext(word: "case") { checkInCase = true indent.count += 1 indent.inCase = true } else if isNext(word: "default") || isNext(word: "@unknown") || isNext(word: "break") { indent.extra -= 1 } }
Another suggestion it's the break be at the same level as the case but this is just a opinion
The text was updated successfully, but these errors were encountered:
I don't really get your mean, can you post some example please?
Sorry, something went wrong.
What is the other type you want to propose? @firetrap
I think that firetrap want to said below
There is an option in Text Editing, Xcode preference
Indent switch/case labels in
switch condition { case a: break; }
and
I also want this 😄
Jintin
No branches or pull requests
Can you indent switch cases like the xcode when you select it in Text editing preferences.
On alternative can be a option in Swimat settings.
I tried editing your code with some success and a little bug with the break keyword after the break it will add another indent to the next case.
Another suggestion it's the break be at the same level as the case but this is just a opinion
The text was updated successfully, but these errors were encountered: