title: How to exclude files from a project in PhpStorm by pattern?
body: <p>I'm using PhpStorm 10.0.1.  I want to exclude files in directories that match a pattern.  I want this exclusion to remove the excluded files from the set of files that PhpStorm uses when - for example - finding duplicate definitions of classes.</p>
  
  <p>I've gotten part of the way through the solution, which involves Scopes:</p>
  
  <ul>
  <li>Open a project in PhpStorm</li>
  <li>Go to Settings (File -> Settings)</li>
  <li>Navigate to Appearance &amp; Behavior -> Scopes</li>
  <li>Create a scope to exclude the appropriate file(s).
  
  <ul>
  <li>Click the <code>+</code> icon</li>
  <li>Select either Local or Shared</li>
  <li>Give the scope a name</li>
  <li>Enter an appropriate pattern
  
  <ul>
  <li>For example, to exclude files in directories that match <code>*-b0*</code>, enter <code>!file:*-b0*/*</code></li>
  </ul></li>
  <li>Click Exclude Recursively</li>
  <li>Verify in the tree view that the appropriate file(s) are excluded.</li>
  <li>Click OK.</li>
  </ul></li>
  </ul>
  
  <p>This is where I'm stuck.  I can't find any reference anywhere in the UI to that named scope - except in the settings dialog where I created it.</p>
  
  <p>The documentation is no help:</p>
  
  <ul>
  <li><a href="https://www.jetbrains.com/phpstorm/help/scopes.html" rel="nofollow">https://www.jetbrains.com/phpstorm/help/scopes.html</a> - "Scopes" describes how to create scopes but not how to use them</li>
  <li><a href="https://www.jetbrains.com/phpstorm/help/configuring-scopes-and-file-colors.html" rel="nofollow">https://www.jetbrains.com/phpstorm/help/configuring-scopes-and-file-colors.html</a> - "Configuring Scopes and File Colors" describes how to color files in a scope differently but not how to apply them to a project</li>
  </ul>
  
  <p>How do I apply that scope to the current project?</p>
  
  <p>(It may be the case that scopes are applied automatically.  In that case, the Scopes dialog and the rest of PhpStorm disagree on what is included and what excluded and I'll need to file a bug.)</p>