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?

5 comments
Comment actions Permalink

Hello!

If you add a folder to "Files and folders" in "Third-Party Code | Skipped code", all subfolders will get excluded recursively.

0
Comment actions Permalink

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.

0
Comment actions Permalink

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.

0
Comment actions Permalink

The case is strange as I see two other anomalies.

Let's consider this hierarchy

D:\project\app\win\foo.sln
D:\project\lib.external\
D:\project\lib.util\

(lib.external and lib.util have many sub-folders)

When I select the above two folders, then R++ will display in the list:

..\..\..\lib.external
<lib>\<lib.util>\lib.util
1) the path relative to the solution is wrong, it should be
..\..\lib.external

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

 
0
Comment actions Permalink

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:

0

Please sign in to leave a comment.