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.
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.
There are two ways to add comments in Swift: // - Single Line comments. /*... */ - Multiline Comments.
You can use shortcut for create header doc:
⌘ + ⌥ + /
where
⌘ = Command
⌥ = Option (Alt on Windows compatible keyboards)
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