In case you were wondering how you get dojo code support in PHPStorm even if dojo is not in your project folder, here’s the solution:
1. Open Project Settings
2. Select Directories
3. Add the path to your dojo folder as a new Content Root.
4. Mark the directories dijit, dojo, dojox as a Resource Root