Setting the swift-indent-switch-case-offset to 4 doesn't seem to have any effect. The original code from the Guided Tour playground:
let vegetable = "red pepper"
switch vegetable {
case "celery":
print("Add some raisins and make ants on a log.")
case "cucumber", "watercress":
print("That would make a good tea sandwich.")
case let x where x.hasSuffix("pepper"):
print("Is it a spicy \(x)?")
default:
print("Everything tastes good in soup.")
}
gets transformed to this by M-x indent-region
let vegetable = "red pepper"
switch vegetable {
case "celery":
print("Add some raisins and make ants on a log.")
case "cucumber", "watercress":
print("That would make a good tea sandwich.")
case let x where x.hasSuffix("pepper"):
print("Is it a spicy \(x)?")
default:
print("Everything tastes good in soup.")
}
Hi Chris,
Setting the
swift-indent-switch-case-offset
to4
doesn't seem to have any effect. The original code from the Guided Tour playground:gets transformed to this by
M-x indent-region