Visual Studio Default Open File Action

I am using Visual Studio 2008 with C #. Is there a way to set the default editor for a class file containing a derived DataTable class? Whenever I double click on one of these classes to open the VS file, it tries to open the component constructor. Since my class is incompatible with this editor, this is a useless default. I would like these files to open in a regular code editor.

+3
source share
4 answers

In Solution Explorer in VS, you right-click the file, select "Open With ...", select "CSharp Editor" in the window, then click the button to set the default.

+2

Visual Studio , .

[System.ComponentModel.DesignerCategory("")]

http://vanguard-against-confusion.blogspot.com/2007/05/disable-design-time-support-in-visual.html, .

,

using System.ComponentModel;

[DesignerCategory("")]

VS2010. - , ?

+1

Click- > , , , F7.

0

: , ... , , .

Edit: It was not possible to create a small intermediate command-line program that can determine the correct editor by viewing the content, and then open the file using this editor. Then map this type of file to a temporary program. It seems complicated, but I did it earlier in a similar case.

0
source

Source: https://habr.com/ru/post/1718485/


All Articles