Exclude files generated by Source Generators from Find Usings

I don't care about the code files generated by C# Source Generators and I don't want to see them when I click Find Usages. Is there a way to exclude them?

I know you can exclude stuff in Editor > File Types and Inspection Settings, but I couldn't figure what to put there. We generate files with no special suffix, and when I navigate to those they are located outside of the repo:

/var/folders/cl/g3zsmhgj295d_t8mj0vt5p580000gp/T/RiderSourceGeneratedDocuments/A66B38D393DA283B1109F8BE/Platform.SourceGenerator/Platform.SourceGenerator.LazyProxyGenerator/ServiceTitan.Marketing.Email.ClickTracking.IClickTrackingSavingService.cs

JetBrains Rider 2021.2.1
Build #RD-212.5080.71, built on August 26, 2021
Runtime version: 11.0.11+9-b1504.16 x86_64
VM: Dynamic Code Evolution 64-Bit Server VM by JetBrains s.r.o.
macOS 11.6
.NET 5.0.7

1 comment
Comment actions Permalink

Hello Viktor, 

There is an option to Show/Disable usages in generated code, but at the current moment there is an open issue with it: RIDER-63437.

Please watch it for monitoring the progress. Let me know if you have other questions.

0

Please sign in to leave a comment.