Here is something I wish I’d known years ago – you can make the View Source action default when you double click on a WinForm control.
Here’s how:
- Right click any Form/UserControl file, and choose Open With…
- Select CSharp Editor, then press Set as Default
- ????
- Profit!
That’s it! Now you won’t break the keyboard when you accidentally double click on your MainForm.cs
file.