1

In Eclipse, if I set the caret above a method and write:

/** and click enter, there is an auto documentation of the method with the params that I can easily change.

Is there an equivalent way to do it in xocde?

Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
Dejell
  • 13,947
  • 40
  • 146
  • 229
  • 1
    You start typing all the strings and select those lines and press cmd+/ – Anoop Vaidya Jan 23 '13 at 09:51
  • what do you mean by start typing all the strings? – Dejell Jan 23 '13 at 09:54
  • in .h or .m if you want to add any documentation, simply type them. once you are done. select all the lines and press cmd+/ – Anoop Vaidya Jan 23 '13 at 09:57
  • I am afraid that you misunderstood me. I wouldn't want to add comment myself, but have an auto tool like in Eclipse. If you were an Eclipse user in the past you would understand my question – Dejell Jan 23 '13 at 10:00
  • I understood, that is why i didnt post it as answer, In the mean time i was searching for any scipts available in xcode4, in xcode3 it was there for few things... – Anoop Vaidya Jan 23 '13 at 10:01
  • Not an Eclipse-user so not sure if I get you right, but if you hold down the alt-key and hover over any class-name in your code you'll get a brief description as well as a link to the complete class reference... – T. Benjamin Larsen Jan 23 '13 at 10:10
  • I don't need the documentation - I would like to add a new one! – Dejell Jan 23 '13 at 10:10

1 Answers1

1

There is no shortcut for that.

However you can create your own shortcut by using AppleScript.

Put documentation and comment them by selecting them and pressing cmd+/

You can find more info here : How to add custom keyboard shortcut to xcode targeting a script.

And for better documentation tool HeadDoc and AutoGSDoc.

Community
  • 1
  • 1
Anoop Vaidya
  • 46,283
  • 15
  • 111
  • 140
  • @Odelya : check my answer, i have updated a link where you can find similar thing – Anoop Vaidya Jan 23 '13 at 11:06
  • It's not the script that I am looking for. I am not looking to generate external HTML, but an internal documentation for other developers like in Eclipse – Dejell Jan 23 '13 at 12:04
  • @Odelya : it is not the exact solution for you. But this shows how you can do something automated. Also you need to use keyboard-Shortcut for putting /** */. It may not come automatically as in other IDEs... – Anoop Vaidya Jan 23 '13 at 12:13