Reformat the selection or document manually by using the Format Document or Format Selection command on the Edit menu.
Setting tag-specific options is useful, if you frequently use certain tags and want to customize how the tags are formatted in the editor. Per-tag formatting lets you set the following options for tags:
Closure; that is, not closed, self-terminated, or with a separate closing tag.
Tag-specific formatting rules that you specify can be overridden by the rule that the HTML editor will not change the rendering of tags. If a tag formatting rule would change the way a tag is rendered, the rule is ignored.
To access the Tag Specific Options dialog box
On the Tools menu, choose Options.
The Options dialog box appears.
Select the Show all settings check box, if the development environment is set to Web Development Settings.
The left pane of the Tag Specific Options dialog box contains expandable nodes that group tags into Default, HTML, and ASP.NET categories. You can also create a new node by using the New Folder button and adding tags to it by using the New Tag button.
Expand this node to configure default settings for a category of tags. The following table shows examples of tags in each category.
Client tag does not support contents
Client tag supports contents
Server tag does not support contents
Server tag supports contents
Client HTML Tags
Expand this node to set custom formatting options for HTML elements.
Expand this node to set custom formatting options for ASP.NET server controls.
Click to create a new folder to contain tags.
Click to create a new tag in the selected folder.
Generally, you create a new tag when you are defining custom formatting behavior for a specific control or element or when you want to define formatting for a tag that is not already an ASP.NET server control or HTML element. If you want to create a tag that already exists in one of the tag folders, you should modify the tag in its existing location instead, or delete the original tag before creating a new one with the same name. You cannot create a tag if the same tag already exists in one of the tag folders.
Click to remove the currently selected tag or folder. The Default Settings folder cannot be deleted.
Select this check box, if you want to enable automatic outlining in the HTML editor for the selected tag.
When outlining is enabled, the editor monitors the number of lines in the element, and then applies outlining to the tag when the element exceeds the specified line threshold. (The editor does not automatically collapse the tag.). This feature is useful for collapsing long elements, such as large tables.
Specify the threshold, in lines, after which to apply automatic outlining to the tag.
The threshold includes the opening and closing tags.
View how the selected tag will appear in the editor with the current settings.
The Preview box might not reflect the actual behavior of a tag in the editor. Formatting options can be overridden by other rules that take precedence, such as the rule that automatic formatting cannot change how a control is rendered.