How to edit default scopes
Hello there.
I just encouraged a strange problem after updating to PHPStorm 3.0. I can't change default scopes. Only thing I want is to add some files to "Tests" scope. In early versions of 2.0 (I hope so) I did that somehow. Now after fresh update I configured my working environment from cratch. And I really can't solve that problem with predefined scopes.
How can I do this? (I do not want to create one more scope with similar title)
Thanks!
Please sign in to leave a comment.
One more question: how to specify sort order in scope? I can't get list sorted by names.
Hello Ostin,
that was never possible. You may create such scope by hand but where do you need such a scope?
Thank you
The only way to sort during editing is to use arrows on the toolbar. Or where do you need to sort scopes by name?
Thank you
I meant sorting files in scope. I select preferred scope and can't get files be sorted by name :)
OK. In earlier version I could set "sources folder" as well as "tests folder" - these are default scopes! In other words I could add my files to the default scope.
I've got great number of files and folders in my project and several tests (PHPUnit) folders in the root of project among them. Only I want is to filter separately tests and not tests.
In the last version default scopes are empty. How to use them?
Ostin, nothing was changed here. Production/Tests/Libraries scopes are available in IDEA when you mark directories as source folder or test folder. These nodes (Production/Tests/Libraries) are available for Packages mode which can be selected on the toolbar. Please check also that such grouping is on (also is configured on the toolbar).
Does this help?
Thank you
Actually they are sorted by name. Could you please attach a screenshot?
Thank you
How can I mark directory as test folder? I think this is the main question :)

In previous version I remember there was an item in that menu.
I'm talking about PphStorm 108.1421
http://youtrack.jetbrains.net/issue/WI-6712
@ostin wonderful, your suggestion has effect in Webstorm 7.0.2
I config the folders so it needn't search when 'Find Usages' and version control
Best Regards.