Aptana Studio ヘルプ > はじめに > Aptana Studioナビ > Using Code Assist
Aptana HomePage

Documenting your code using ScriptDoc

Using Aptana's ScriptDoc system to document your code enables Code Assist to work for your own code in addition to built-in support the core JavaScript language and many popular Ajax JavaScript libraries. This page gives some of the guidelines to think about when adding ScriptDoc blocks to your code.

Peter Geil has posted a nice one page cheat sheet for ScriptDoc on Scribd.

Contents

Basic Instructions

Example: A basic documentation block for a getFoo() function

/** 
* Gets the current foo 
* @param {String} fooId The unique identifier for the foo.
* @return {Object}      Returns the current foo.
*/
function getFoo(fooID){
}

Ordering your tags

Add your tags in the following order, as appropriate:

Guidelines for ordering multiple versions of the same tag

@see #Constructor(Type, Type...)
@see #Constructor(Type id, Type id...)
@see #method(Type, Type,...)
@see #method(Type id, Type, id...)
@see Class
@see Class#field
@see Class#Constructor(Type, Type...)
@see Class#Constructor(Type id, Type id)
@see Class#method(Type, Type,...)
@see Class#method(Type id, Type id,...)
@see package.Class
@see package.Class#field
@see package.Class#Constructor(Type, Type...)
@see package.Class#Constructor(Type id, Type id)
@see package.Class#method(Type, Type,...)
@see package.Class#method(Type id, Type, id)
@see package

Related Topics