Edit Comment Indent Xcode

The default behavior for the Xcode comment keyboard shortcut is to place // in the far left of the selected lines regardless of the indent.

I would like to change this so that the indentation is taken into account and // inserted just before the comment of the text.

For instance:

class MyClass { func myFunc() { // cmd-/ does this // I want cmd-/ to do this } } 

Is it possible?

+5
source share

Source: https://habr.com/ru/post/1235646/


All Articles