QUESTION: Inspection Results (Where was automatic download of AngularJS placed?)

I chose "CODE -> INSPECT CODE...". There were problems reported. One of the problems appeared to the script link to google's CDN for AngularJS:

<script type="text/javascript" src="https://ajax.googleapis.com/ajax/libs/angularjs/1.4.2/angular.min.js">

A link titled "download" or something like that appeared. I clicked it and the following appears:

successfully_download.png

Where was the download of "angularjs/1.4.2/angular.min.js" placed?

I ask, because it does not seem to appear in the project folder.

QUESTION:

  1. To what location was "angularjs/1.4.2/angular.min.js" downloaded to on my computer?
3 comments
Comment actions Permalink

Hi there,

To what location was "angularjs/1.4.2/angular.min.js" downloaded to on my computer?
  1. Go to "Settings (Preferences on Mac) | Languages & Frameworks | JavaScript | Libraries"
  2. Find your library there
  3. Click on "Edit" button
  4. If you hover over files that included in this library, it should show you the location


Accordingly to this document it should be somewhere in "~/Library/Caches/WebStormXX/extLibs" (I'm not a Mac user so cannot confirm it for 100%, but on Windows 7 using PhpStorm 9 it can be found be in C:\Users\USERNAME\.WebIde90\system\extLibs folder).

Once downloaded it will be available for other projects as well (the library in IDE is marked as "global" so no need to re-download it again, unless, of course, different version or different URL).

0
Comment actions Permalink

Thanks for responding Andriy.

In "Preferences -> Libraries & Frameworks -> JavaScript -> Libraries", I found "Angular".

When I double click (or highlight and click EDIT), the following window opens:

preference_library_edit.png

What are the "Documention URLs used for?

Nothing currently shows.

If I clicked the plus button ("+"), a window open requesting I enter an URL:

request_documentation_url.png

Would I enter the following URL?

https://code.angularjs.org/1.4.2/docs/api

QUESTIONS:
  1. What are the documentation URL's used for?
  2. How would I access an URL in the list from within an editor?
0
Comment actions Permalink
What are the documentation URL's used for?


To fetch and display documentation for specific method/function.

The best thing -- try this with jQuery, for example. I've never used AngularJS myself (plus, I'm not really a JS person) so cannot say what exactly needs to be entered in your particular case. For jQuery (and some other libraries/frameworks) the doc links are provided by IDE automatically.


How would I access an URL in the list from within an editor?


What URL? Documentation?

"View | Quick Documentation"
"View | External Documentation"

https://www.jetbrains.com/webstorm/help/viewing-reference-information.html?search=lib

0

Please sign in to leave a comment.