General, HTML Designer, Options Dialog Box

 

These settings allow you to adjust the default view in which Web pages open for editing in the HTML Designer.

To access this dialog box

  1. In Microsoft Visual Web Developer, click Tools, and then click Options.

    The Options dialog box opens.

  2. In the left panel, expand the HTML Designer node, and click General.

    If you have configured your environment settings for Web development, the elements of this node are included with the elements of the General Tab, Options Dialog Box (Visual Web Developer). For more information about environment settings, see .ec70b520-a3e3-43c9-929b-bdc732cd2147

Note

Additional HTML options can be found under the Text Editor, HTML node, which is visible if the Show all settings check box is selected.

For more information about formatting HTML, see NIB: Formatting Elements in the HTML Editor in Visual Web Developer.

Tasks

Walkthrough: Advanced HTML Editing in Visual Studio for Web Forms Pages

UI Elements

The following user interface (UI) elements are displayed if your environment settings are configured for general development and you have clicked the General node in the HTML Designer node in the Options dialog box, or if you have the Show all settings check box selected.

  • Enable HTML designer (requires restart of Visual Studio)
    When this option is selected, you can edit pages in Design view. If you disable this option, you can edit pages only in Source view.

  • Source View
    When this option is selected, the editor initially displays Web pages in Source view, showing the page's markup. For details, see NIB: Source View.

  • Design View
    When this option is selected, the editor initially displays Web pages in Design view, showing a WYSIWYG-like view. For details, see Design View.

  • Split View
    When this option is selected, the editor initially displays Web pages in both Design view and Source view. The default behavior is for the two views to be arranged horizontally. To arrange the two views vertically (side-by-side), choose the Split views vertically option.

  • Assign unique IDs to new tables
    When this option is selected, Visual Studio automatically adds an identifier to the <table> element for each table that you add to the page (for example, when you insert a table from the HTML or Standard toolboxes, or when you choose Table, and then Insert Table in Design view.) The identifier is of the format id="table1", and the values for the id attribute increase incrementally starting at table1 (table1, table2, table3), and so on.

  • Auto keyboard switching
    When this option is selected, the keyboard language changes to the language of the text where the insertion point is placed.

  • Split views vertically
    When this option is selected, the Design view and Source view windows are arranged vertically (side-by-side).

See Also

General, HTML, Text Editor, Options Dialog Box
Tabs, HTML, Text Editor, Options Dialog Box
Formatting, HTML, Text Editor, Options Dialog Box
Miscellaneous, HTML, Text Editor, Options Dialog Box
Validation, HTML, Text Editor, Options Dialog Box