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

怎甘沉沦 提交于 2019-12-05 08:23:53

问题


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.


回答1:


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




回答2:


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.




回答3:


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

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

}


来源:https://stackoverflow.com/questions/633191/how-can-i-set-the-default-double-click-action-in-visual-studio

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!