Dela via


How to: Set Editor Tab and Indent Options

Use these procedures to set the TAB key options in the Text Editor.

Note

The dialog boxes and menu commands you see might differ from those described in Help depending on your active settings or edition. To change your settings, choose Import and Export Settings on the Tools menu. For more information, see Visual Studio Settings.

Specifying Indenting for New Lines

To specify indenting for new lines

  1. On the Tools menu, click Options.

  2. Expand Text Editor.

  3. To set indenting options for all editors, expand All Languages and then click Tabs.

    —or—

    To set indenting options for a specific editor only, expand the appropriate language and then click Tabs for that language.

  4. Under Indenting, select the option that meets your needs. For more information, see Tabs, All Languages, Text Editor, Options Dialog Box.

  5. Click OK.

Specifying Tab Settings in the Editor

To specify tab settings

  1. On the Tools menu, click Options.

  2. Expand Text Editor.

  3. To specify tab settings for all editors, expand All Languages and then click Tabs.

    —or—

    To specify tab settings for a specific editor only, expand the appropriate language and then click Tabs for that language.

  4. For Tab size, enter the number of spaces you want between tab stops.

  5. For Indent size, enter the number of spaces you want to automatically indent.

  6. Set other options as appropriate. For more information, see Tabs, All Languages, Text Editor, Options Dialog Box.

  7. Click OK.

See Also

Concepts

Customizing the Editor

Reference

Tabs, All Languages, Text Editor, Options Dialog Box

Other Resources

Setting Editor Options