JetBrains Rider
 
Get JetBrains Rider
Get your hands on the new features ahead of the release by joining the Early Access Program for Rider 2025.1! Learn more

Scopes and file colors

Last modified: 18 December 2024

A scope the Scope icon is a group of files and folders in a solution. You can use scopes to visually distinguish solution items in different IDE views and to limit the range of specific operations.

Scopes are designed to logically organize files in your solution: test sources can go to the test-related scope, and production code can be associated with the scope of production files. These logical chunks make your solution easier to manage.

JetBrains Rider comes with a set of predefined scopes, but you can also create custom scopes. There, you can include any files and folders. For example, a custom scope can include only those files in the solution for which you are responsible.

There are 2 types of scopes: local and shared.

  • Local scopes are stored in the IDE configuration directory, that is why they are not shared through VCS and are not available to other members of your team.

  • Shared scopes are added to a VCS so that people who work on a solution can use the same scopes. These scopes are stored together with the solution in the scopes folder under .idea. Each scope is saved as a file with the .xml extension (for example: MySolution/.idea/scopes/shared-scope.xml).

Using shared scopes makes sense if your solution is under version control. If you don't use a VCS, local scopes will be sufficient to cover your needs.