How to disable auto-indent of properties and methods in Swift/Xcode

Swift class indentation is eating useful horizontal space, and it's not much helpful, apart from being consistent. How can I disable it?

I know that I can disable it altogether, but I want to keep the auto-indentation for the rest of {} blocks, it's useful.

Can you show what you want, more precisely ?

Do you want to change

class AClass {
    var x: Int = 0
    var y : String = ""
}

to

class AClass {
var x: Int = 0
var y : String = ""
}

In Xcode settings > Text Editing > Indentation, you can reduce indent width from 4 spaces to what you want. But I personally do not see the issue in horizontal space…

class AClass {
  var x: Int = 0
  var y : String = ""
}

But of course that will change indent everywhere.

How to disable auto-indent of properties and methods in Swift/Xcode
 
 
Q