Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New Feature: Generate JSDoc #13

Open
Sevin777 opened this issue Dec 8, 2014 · 0 comments
Open

New Feature: Generate JSDoc #13

Sevin777 opened this issue Dec 8, 2014 · 0 comments

Comments

@Sevin777
Copy link
Owner

Sevin777 commented Dec 8, 2014

Add a feature that generates a JS doc outline for an existing function

function test(a,b){
    return a*b;
}

Should generate:

/**
 * @returns {number} {description}
 * @param {number} a - {description}
 * @param {number b - {description}
 */

The result should use Ace's snippets feature (generate a dynamic snippet example). Each {description} placeholder is part of the snippet. Use tern to infer type, and if type cant be inferred then make type part of the snippet;

There is already an existing extension for Brackets that does something like this, so check it out first.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant