Friday, October 30, 2015

Make ReSharper green!

Click on all of the yellow ticks at the right edge of a file's display in Visual Studio (at the vertical scrollbar) to address each one. When you visit each one there will be a tooltip icon of some fashion (perhaps a lightbulb) at the opposite side, the left edge. When you click there will be a menu which appears which gives you options for cleaning up the problem and, yes, there is an option to just ignore the problem. The last option will have a wrench icon and read: Inspection "Assignment is not used" or some similar error message and this will expand yet another menu with: Disable once with comment ...as an option. Hopefully you won't just comment out everything. Hopefully this keeps you out of trouble.

I really hate that ReSharper encourages you to use the var keyword, but I seem largely alone in my opinion. I guess this is just modern C#, huh? Nuts.

No comments:

Post a Comment