Search code examples
visual-studiodefaultview

How can I set the default double click action in Visual Studio?


How can I make Visual Studio default to View Source when you double-click the Form1.cs. I prefer to make View Source the default of double-click than View Designer.


Solution

  • Right click the file in the Solution Explorer, choose "Open With...", select the CSharp Editor, and click the "Set as Default" button.