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!

10 comments
Comment actions Permalink

One more question: how to specify sort order in scope? I can't get list sorted by names.

0
Comment actions Permalink

Hello Ostin,
that was never possible. You may create such scope by hand but where do you need such a scope?
Thank you

0
Comment actions Permalink

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

0
Comment actions Permalink

I meant sorting files in scope. I select preferred scope and can't get files be sorted by name :)

0
Comment actions Permalink

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?

0
Comment actions Permalink

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

0
Comment actions Permalink

Actually they are sorted by name. Could you please attach a screenshot?
Thank you

0
Comment actions Permalink

How can I mark directory as test folder? I think this is the main question :)

sch.png

In previous version I remember there was an item in that menu.

I'm talking about PphStorm  108.1421

0
Comment actions Permalink

@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.

0

Please sign in to leave a comment.