Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

How to: Set Editor Tab and Indent Options

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

NoteNote:

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.

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.

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.

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2015 Microsoft