File -> Settings -> External Tools ->Add…
Provide the following information:
Fill in the path to your java executable, e.g. C:Program FilesJavajdk1.6.0_19binjava.exe
Parameters: -jar jsrun.jar apprun.js -t=templatescodeview -v -r “<pathToSourceDirectory>” -d=”<pathToDestinationDirectory>”
Working Directory: <pathToJsdocToolkit>
Fill in the path to your jsdoc-toolkit installation directory, e.g. C:Website Toolsjsdoc-toolkit
In case you also wanted to create documentation for your PHP code, you should read the blog entry ‘How to create PHP documentation in PhpStorm‘.