Dela via


Editor, Basic, Text Editor, Options Dialog Box

Note

This property page is only visible if you have set your profile settings to "Visual Basic Development Settings" and the Show All Settings check box in the Options dialog box is cleared (not checked).

The Editor property page, in the Basic folder of the Text Editor folder of the Options (Tools menu) dialog box contains the following properties:

Indenting

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

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

  • Indent type: Smart
    When selected, new lines are positioned to fit the code context, per other code formatting settings and IntelliSense conventions for your development language. This option is not available for all development languages.

    For example, lines enclosed between an opening brace ( { ) and a closing brace ( } ) might automatically be indented an extra tab stop from the position of the aligned braces.

    This option is the default.

  • Tab size
    Sets the distance in spaces 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.

Interaction

  • Word Wrap
    Checking this box enables wrapping of text in the text editor. This box is cleared by default.

  • Line numbers
    Checking this box displays line numbers in the text editor. This box is cleared by default.

See Also

Tasks

How to: Set Editor Tab and Indent Options

Reference

General, Environment, Options Dialog Box

Tabs, All Languages, Text Editor, Options Dialog Box

Smart Compile Auto Correction