xcode

Multi-line comments in Xcode


Is there a way to comment various lines at the same time in Xcode IDE?

Selecting which lines to comment, and the clicking somewhere, et voilà... The /* ... */ characters wrapping the code.


Solution

  • Command + Shift + 7

    or

    Command + /

    This inserts // in front of every selected line.