Exclude a folder and its sub-folder
I have lots of third-party codes I want to exclude.
Many of them are located in deep folder hierarchies.
I wish I could exclude the root folder only and not each sub-folder individually.
I can't find a way to do so. Is there any?
Please sign in to leave a comment.
Hello!
If you add a folder to "Files and folders" in "Third-Party Code | Skipped code", all subfolders will get excluded recursively.
Unfortunately, this does not work and this is actually what I tried first. I even cleared the ReSharper cache and restarted VS. The file navigation search still shows the files in the sub-folders.
Navigation features have their own exclusion list in "Search & Navigation | General | Elements to skip", so you can exclude files from navigation there. Unfortunately subfolders themselves will still be shown, please vote for https://youtrack.jetbrains.com/issue/RSRP-490025/Search-Navigation-Elements-to-skip-does-not-affect-folders.
The case is strange as I see two other anomalies.
Let's consider this hierarchy
(lib.external and lib.util have many sub-folders)
When I select the above two folders, then R++ will display in the list:
2) What this notation is about "<lib>\<lib.util>\lib.util"
I think R++ makes some kind of analysis of what is inside the folder, but that does not make any sense to me.
Any comment about this special notation?
Thanks
Not sure why the paths are different, could be related to your project model. If the files do get excluded I wouldn't worry too much, but if you can make a sample solution for this we'll investigate. With a similar file structure (i.e. folders above the solution folder) I get this: