I search around the net but did't find a concrete answer. Please help - How to add Jasmine autocomplete to WebStorm?
Here's the step-by-step process for adding library definitions, which are provided courtesy of borisyankov/DefinitelyTyped at GitHub.
In WebStorm, open the Settings dialog (File > Settings).
Under the Project Settings category, navigate to JavaScript > Libraries.
Click the Download button on the right side. This opens the Download Library dialog.
Select "TypeScript community stubs" from the combo box.
Find the library you're looking for, select it and click Download and Install.
To restrict usage of a library definition to specific files/folders, use the Manage Scopes dialog. In your case, you might consider it appropriate to only show Jasmine autocomplete in your test spec folder.
NOTE: Even though the dialog is named Download Library, this process is only for downloading the definition of the library (method signatures, types, etc). You still need to download the actual library yourself to use it.
You have to download jasmine.js and configure it as a library (Settings/javaScript/Libraries, Add...)
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With