C# – Visual Studio Default Open File Action

cvisual-studio-2008

I am using Visual Studio 2008 with C#. Is there a way to set the default editor for a class file containing a DataTable derived class? Whenever I double click on one of these classes to open the file VS attempts to open a component designer. Since my class isn't compatible with that editor this is a rather useless default. I would like these files to open up in the normal code editor.

Best Answer

In the solution explorer within VS you right click the file, select "Open With ...", select CSharp Editor in the window, then click the button to set as default.