I tried to copy the files \casperjs\modules\*.jsto the project, most of the functions got "specific".
PhpStorm: download casperjs.zip from casperjs.org, it will contain a folder modules, copy each .js file to your project. (I put them in the IDE_HELPER folder)
javascript IDE , .
: , .
IDE.