Formatting Style warnings during Code Inspection

I want ReSharper to highlight formatting violations. For example, I don't want more than one consecutive blank lines in my code, so if I have three blank lines, I want ReSharper to highlight those lines as warnings (or suggestions or whatever).

Is there an option for that?

Thanks,
Eric

4 comments
Comment actions Permalink

Hello Eric,

ReSharper doesn't highlight formatting violations out-of-the-box. You can
try StyleCop for ReSharper plug-in: http://stylecopforresharper.codeplex.com/.
Thank you!

Andrey Serebryansky
Support Engineer
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

I want ReSharper to highlight formatting violations. For example, I
don't want more than one consecutive blank lines in my code, so if I
have three blank lines, I want ReSharper to highlight those lines as
warnings (or suggestions or whatever).

Is there an option for that?

Thanks,
Eric
---
Original message URL:
http://devnet.jetbrains.net/message/5268154#5268154



0
Comment actions Permalink

From the description I had read of StyleCop for Resharper I thought it just run StyleCop as you were typing, I didn't realize it added in visual cues.

Thanks,
Eric

0
Comment actions Permalink

Is this still not supported for R# 2016.3?

0
Comment actions Permalink

Hello Lisa,

You may install "StyleCop by JetBrains" plugin via ReSharper | Extension Manager and check it.

Thanks!  

0

Please sign in to leave a comment.