JetBrains Rider 2024.1 Help

File nesting rules

JetBrains Rider provides a default configuration of file types and typical suffixes that are used for related file types — for example, a file with the .map.ts suffix is normally related to a file having the same name and the .ts extension — such files will be automatically grouped in the Solution Explorer.

You can configure these relations or disable logical nesting altogether by clicking on the toolbar of the Solution Explorer and choosing File Nesting Settings...:

JetBrains Rider: Grouping related files using file nesting

Grouping of files in this way will not make any changes in your project/solution config files.

Configure file nesting

  1. In the Solution Explorer tool window (Alt+1), click and select File Nesting File Nesting Settings... .

    A dialog opens in which you can configure file nesting rules.

  2. Enable the Show files with the same names as nested option to recognize child files based on the patterns from the list and display them grouped under the corresponding parents.

    Otherwise, JetBrains Rider shows parents and children at the same level.

  3. Configure nesting rules. You can edit predefined rules or specify new ones: click the Add button and specify suffixes of parent and child files.

  4. Click OK.

Last modified: 26 February 2024