Search code examples
c#stylesresharperjetbrains-iderider

Rider styling not working with a C# file that has 6000+ lines


Recently I've started using JetBrains' Rider. Problem is I can't seem to get stylings work with C# files that have too many lines. In my case, it was 6000. I reproduced this issue with another file with similar size. After removing some lines, it seemed to work perfectly fine. Here's an example to set an image. not working

And after removing some lines: enter image description here


Solution

  • You just have to enable it, because IDE disable analysis in big files because most of the time they are generated and it just cause unnecessary performance hit.

    See the next article: https://rider-support.jetbrains.com/hc/en-us/articles/360010996600-Rider-Cannot-Analyze-a-Source-File-Because-It-s-Too-Large