I've been having a lot of fun delving into various aspects of the PHPStorm.
Based on the concept that diskspace is cheap, and drive clarity can make life simple - I'm experimenting with the following setup:
client name: client
client dev server - client.mydomain.com
my dev server - mydomain.home
Project file structure:
Main directory: client
Project name: client
client\configuration --> contains any config info I might need, ssh keys, etc
client\docs - project docs for easy reference
client\client.mydomain.com -> website code AS DEPLOYED TO dev. Comes from a git repository and branch devsite
client\mydomain.home -> website code AS DEPLOYED TO my local dev. Also maps to the same git repo, but different branch home
Deployment profiles: directly maps the 2 subdirectories to their SFTP server and path. Makes life 50 times easier as now I can manually sync the 2 directories when I want to deploy and catch conflicts caused by other devs not using the version repo
docs - just files in client\doc
config - just files in client\configuration
devsite - just files in client\client.mydomain.com
mysite - just files in client\mydomain.home
Content Roots defined:
Resource Roots defined
Scopes make life very very easy - when I want to search for text, I can specify which scope to check and check just those files. I can do directory comparisons between the 2 sets of code to find problems. Etc
What I can't seem to do is configure PHPStorm such that if I have a file open in scope devsite, then it should only use files from that scope.
As a workaround, I simply use the exclude feature and swap excluded folders as needed to switch between codesets. However, I figured I'd ask here if I was missing some feature where I can specify which set of directories to use.
If not, I can always put in a feature request. I think being able to attach a scope to a directory so that PHPStorm knows that for files in that directory, use a specific scope for file completion would be the ideal solution.