Udostępnij za pośrednictwem


Tabs, HTML, Text Editor, Options Dialog Box

This dialog box enables you to adjust default tab settings for the Source view markup editor.

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 Text Editor node, expand the HTML node, and click Tabs.

    If you have configured your environment settings for Web development, this element is not available unless you select the Show all settings check box. For more information about environment settings, see How to: Change Select Settings.

Note

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

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

Tasks

UI Elements

Indenting

  • None
    When this option is selected, new lines are not indented. The insertion point is placed in the first column of a new line.

  • Block
    When this option is selected, new lines are automatically indented. The insertion point is placed at the same starting point as the preceding line.

  • Smart
    This option is not available.

Tab

  • Tab size
    Sets the distance between tab stops. The default is four spaces.

  • Indent size
    Sets the size, in spaces, of an automatic indentation. The default is four spaces. Tab characters, space characters, or both will be inserted to fill the specified size.

  • Insert spaces
    When this option is selected, indent operations insert only space characters, not tab characters. If the Indent size is set to 5, for example, then five space characters are inserted whenever you either press the TAB key or click the Increase Indent button on the Formatting toolbar.

  • Keep tabs
    When this option is selected, indent operations insert as many tab characters as possible. Each tab character fills the number of spaces specified in Tab size. If the Indent size is not an even multiple of the Tab size, space characters are added to fill in the difference.

See Also

Reference

General, HTML, Text Editor, Options Dialog Box

Format, HTML, Text Editor, Options Dialog Box

Miscellaneous, HTML, Text Editor, Options Dialog Box

Validation, HTML, Text Editor, Options Dialog Box

Display, HTML Designer, Options Dialog Box

General, HTML Designer, Options Dialog Box