Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Where is the visual studio HTML Designer?

Where is the Visual Studio HTML Designer? I see that there are options for the HTML Designer but I can't open it. There is a HTML Designer options node!

So I just want to ask why I can't find the designer and how do I open it. When I create an HTML file it just goes to the HTML code.

like image 944
Sweeper Avatar asked Jul 27 '15 13:07

Sweeper


People also ask

Is there HTML in Visual Studio?

Visual Studio offers powerful HTML, CSS, JavaScript, and JSON editors. Tap into the power of LESS, and Sass, use PHP, Python, or C# with ASP.NET. All the popular languages are supported and you can move between languages and project types with ease.

Which Visual Studio is best for HTML?

HTML in Visual Studio Code. Visual Studio Code provides basic support for HTML programming out of the box. There is syntax highlighting, smart completions with IntelliSense, and customizable formatting. VS Code also includes great Emmet support.


2 Answers

The default HTML editor (for static HTML) doesn't have a design view. To set the default editor to the Web forms editor which does have a design view,

  1. Right click any HTML file in the Solution Explorer in Visual Studio and click on Open with
  2. Select the HTML (web forms) editor
  3. Click on Set as default
  4. Click on the OK button

Once you have done that, all you need to do is click on design or split view as shown below:

Screenshot showing the location of said options

like image 126
DividedByZero Avatar answered Oct 18 '22 21:10

DividedByZero


Another way of setting the default to the HTML web forms editor is:

  1. At the top menu in Visual Studio go to File > New > File
  2. Select HTML Page
  3. In the lower right corner of the New File dialog on the Open button there is a down arrow
  4. Click it and you should see an option Open With
  5. Select HTML (Web Forms) Editor
  6. Click Set as Default
  7. Press OK

Screenshot showing how to get to the "Open With" dialog box when creating a new file.

like image 22
cflyer Avatar answered Oct 18 '22 21:10

cflyer