IDE Assistant PhantomJS / CasperJS

Is there a way to get IDE support for CasperJS features? I am currently using PhpStorm, but also tried in netbeans, it will not know which functions are defined. It is very annoying that I get Unresolved variable / undefined functionIDE warnings for all functions.

+4
source share
4 answers

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.

+4

: JetBrains.

, - Hector (, , !).

, IDE. , , " " , " "

+4

casperjs .

Project > Directories > + Add Content Root > casperjs, > Mark as Resource Root.

0

I know this old post, but after I did not find any IDE helper, I managed to write a script that creates it, clearing the content of official documents. You can learn more about the IDE helper on my website:

http://christophersax.com/2016/casperjs-ide-helper/

(This, of course, is free)

Hope this helps!

0
source

All Articles