The default behaviour for the Xcode comment keyboard shortcut is to place // at the far left of the selected lines regardless of indentation.
I'd like to change this so that the indentation is taken into account and the // is inserted just before the text to comment.
For example:
class MyClass {
func myFunc() {
// cmd-/ does this
// I want cmd-/ to do this
}
}
Is this possible?
You can use the Comment Here extension. After downloading:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With