Started using ReSharper and have some issues along. I got most of the stuff figured out but can't decide what to do with:
VS automatically creates Window_Loaded, Button_OnClick and so on. Resharper says there should be no underscore. How can I fix all those?
How Should I name controls and windows in WPF? I name them as btnSubmit, wndMain, etc but obviously this is not what preferred by ReSharper. Is SubmitButton and MainWindow better?
prefixing worked for me in the past since I can see items sorted in collections but maybe it's wrong? Any suggestions will be helpful. I'm going through tremendous pain with all this StyleCops etc :)
Question 1)
Just disable as shown below.
// ReSharper disable InconsistentNaming
private void btnCreateChannel_Click(object sender, RoutedEventArgs e)
// ReSharper restore InconsistentNaming
{
SetupChannel();
}
Question 2)
Follow Microsoft naming convention -> here
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With