Are you trying to get documentation or intellisense? You may be able to get intellisense by downloading the API locally and pointing WebStorm the directory as your Dojo install, I have not tried it this way, but it did not work when I pointed it to the CDN.
But for docs, WebStorm will look to external sites to pull in the docs via URL.