There is an easy way to disable ReSharper's inconsistent name resolution check for the entire file / class.
By adding the following comment to the top of the file / class, ReSharper will not evaluate naming conventions when parsing the file / class.
// ReSharper disable InconsistentNaming
For a piece of code, you can:
// ReSharper disable InconsistentNaming private void btnCreate_Click(object sender, RoutedEventArgs e) // ReSharper restore InconsistentNaming { //..... }
List of suggested comments provided by ReSharper:
// ReSharper disable InconsistentNaming // ReSharper restore InconsistentNaming // ReSharper disable CodeCleanup // ReSharper restore CodeCleanup
source share