Wednesday, June 3, 2015

ReSharper will put a white blue squiggly line beneath a variable which has few back-to-back uppercase letters in it, breaking with Pascal case and camel case conventions.

But what if the CATS in your iLikeCATS variable is a legit acronym? Here's how to make ReSharper stop complaining:

  1. Click to put your cursor in the middle of iLikeCATS which should make a pryamid with one black side and one white side appear at the left of the line of code.
  2. Click the pryamid icon to expand a menu.
  3. Mouse over: Options for "Inconsistent Naming" inspection
  4. Mouse over: Add 'CATS' to the abbreviations list (save to: This computer).
  5. Click: Add 'CATS' to the abbreviations list (save to: Solution "Whatever" team-shared).

No comments:

Post a Comment