Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Auto generate method comment in Xcode

Is there a way in Xcode to generate method comment automatically similar to what you do in Eclipse for javadoc comments.

For example press you may hit /** one row before a method declaration and eclipse automatically generates the skeleton of method comments.

like image 737
Laszlo Avatar asked Jan 21 '12 15:01

Laszlo


People also ask

How do I comment multiple lines in Xcode?

By selecting a few lines of code (pressing ⇧+↑ or ⇧+↓), you can comment a bunch of lines in a single shot with the ⌘ + / shortcut. If the lines are already comments, the same shortcut will uncomment them.

How do you comment multiple lines in Swift?

There are two ways to add comments in Swift: // - Single Line comments. /*... */ - Multiline Comments.


1 Answers

You can use shortcut for create header doc:

+ + /

where
= Command
= Option (Alt on Windows compatible keyboards)

like image 166
Tomas Ivan Avatar answered Oct 12 '22 00:10

Tomas Ivan