Javascript library alias

First let me explain my setup. When I develop new widgets and chunks of markup, I often make them as a flat html file, that can run locally. I then reference our custom javascript directly from a webserver. Like so:

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html lang="da">
<head>
    <title>Demo</title>

    <script src="http://myserver.com/core.js" type="text/javascript"></script>

</head>



Now, the file on myserver.com/core.js is actually also a file in my local filesystem (in another project that the one I have my demo in).

I know that I can tell PHPStorm to download the external library, but that saved library wont automatically get any changes done to the file, it will only be a copy of how the file looks at this point in time.

Thats why I am wondering, is it possible to make an alias of some sort, and tell PHPStorm that it can find the javascript library referenced at "http://myserver.com/core.js" in a local file - and that way enable codecompletion for the contents of the file?

I hope I made my question clear, if not, ask away, and I'll try to clarify.

Please sign in to leave a comment.