Visual Studio HTML 设计器在哪里?

2022-01-20 00:00:00 visual-studio ide html

Visual Studio HTML 设计器在哪里?我看到 HTML 设计器有一些选项,但我无法打开它.

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

所以我只想问一下为什么找不到设计师,怎么打开.当我创建一个 HTML 文件时,它只是转到 HTML 代码.

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.

推荐答案

默认的 HTML 编辑器(用于静态 HTML)没有设计视图.要将默认编辑器设置为具有设计视图的 Web 表单编辑器,

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. 在 Visual Studio 的解决方案资源管理器中右键单击任何 HTML 文件,然后单击 Open with
  2. 选择HTML(网络表单)编辑器
  3. 点击设为默认
  4. 点击确定按钮

完成后,您只需点击 designsplit 视图,如下所示:

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

相关文章