Swift switch/case indentation is awkard

Originator:mikeyward
Number:rdar://17764191 Date Originated:22-Jul-2014 01:19 PM
Status:Open Resolved:
Product:Developer Tools Product Version:Xcode6-Beta4 (6A267n)
Classification:UI/Usability Reproducible:Always
 
Summary:
Switch/case indentation feels awkward. case: statements should be indented one level deeper than the switch.

Steps to Reproduce:
Create a switch/case statement in Swift:

let boo = true
switch boo {
case false:
	println(“whee”)
case true:
	println(“booo”)
}

Expected Results:
Xcode indents the case X: statements one level deeper than the switch foo { line.

Actual Results:
the Switch and Case lines are equally indented.

Comments

In addition to being just plain ugly, the indentation is inconsistent with the way "case" is handled in enums:

enum MyEnum {
    case A
    case B
    case C(Int)
}
By kristopherdjohnson at July 22, 2014, 10:03 p.m. (reply...)

Please note: Reports posted here will not necessarily be seen by Apple. All problems should be submitted at bugreport.apple.com before they are posted here. Please only post information for Radars that you have filed yourself, and please do not include Apple confidential information in your posts. Thank you!