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

3

55

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.

Eveland answered 11/3, 2009 at 3:3 Comment(0)
S
72

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

Stesha answered 11/3, 2009 at 3:14 Comment(0)
L
12

Right click a form file and click "Open With...". Pick your desired designer to open as default (in this case "CSharp Editor" or "Microsoft Visual Basic Editor") and click "Set as Default". Voila.

Libertinism answered 11/3, 2009 at 3:14 Comment(0)
P
1

with this attribute myClass will open in the code editor and not the designer:

[System.ComponentModel.DesignerCategory("")]
public class myClass : Form
{

}
Pelpel answered 7/11, 2019 at 16:9 Comment(0)

© 2022 - 2024 — McMap. All rights reserved.