How to stop visual studio from opening my winforms controls in the designer

前端 未结 2 1754
孤城傲影
孤城傲影 2021-02-14 21:43

When I want to edit/view the code for a winforms control/form i created, I need to right-click in the solution and select \"view code\". The default action for opening the file

相关标签:
2条回答
  • 2021-02-14 22:06

    Decrotate your Form or Control that should open in code view with [System.ComponentModel.DesignerCategory("Code")]

    0 讨论(0)
  • 2021-02-14 22:14
    • Right-click on a file in your solution
    • Select "Open With..."
    • Select "CSharp Editor"
    • Click "Set as Default".
      (In a web application, you need to select "Web Form Editor")
    0 讨论(0)
提交回复
热议问题